iCrawl / action-artifact

Upload artifacts to releases action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

action-artifact

Upload artifacts to releases action

Usage with release events

.github/workflows/release.yml

on:
  release:
    types: [published]

jobs:
  artifact:
    name: Upload Artifact
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: install node v18
        uses: actions/setup-node@v3
        with:
          node-version: 18
      - name: yarn install
        run: yarn install
      - name: artifact
        uses: icrawl/action-artifact@v3
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          path: 'Someting*.exe'

Usage workflow dispatches

.github/workflows/manual-release.yml

on:
  workflow_dispatch:
    inputs:
      tag:
        description: The release tag of which the assets should be updated
        required: true

jobs:
  artifact:
    name: Upload Artifact
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: install node v18
        uses: actions/setup-node@v3
        with:
          node-version: 12
      - name: yarn install
        run: yarn install
      - name: artifact
        uses: icrawl/action-artifact@v3
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          path: 'Someting*.exe'
          release-tag: ${{ github.event.inputs.tag }}

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

action-artifact © iCrawl
Authored and maintained by iCrawl.

GitHub @iCrawl · Twitter @iCrawlToGo

About

Upload artifacts to releases action

License:MIT License


Languages

Language:TypeScript 100.0%