Upload artifacts to releases action
.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'
.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 }}
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
action-artifact © iCrawl
Authored and maintained by iCrawl.
GitHub @iCrawl · Twitter @iCrawlToGo