The Upload Release Assets GitHub Action uploads files (base on a glob) to a GitHub release. This is a cross-platform action that runs on any environment.
jobs:
build:
# ...
steps:
- uses: AButler/[email protected]
with:
files: "artifacts/*;packages/*.nupkg"
repo-token: ${{ secrets.GITHUB_TOKEN }}
Name | Description | Examples |
---|---|---|
files |
The glob of files to upload (semicolon separate multiple globs). Always use forward-slashes for glob expressions, even for Windows paths. |
file.txt file*.txt file_{a,b}.txt;*.json /path/to/file.txt C:/path/to/file*.txt |
repo-token |
The GitHub token to use to amend the release (recommended to use ${{ secrets.GITHUB_TOKEN }} ) |
${{ secrets.GITHUB_TOKEN }} |
release-id |
(Optional) Explicitly specify the release id | 42 |
release-tag |
(Optional) Explicity specify the tag of the release | v1.0.0 |
If release-id
is specified, then the release with this ID will be used.
If release-tag
is specified, then the release with this tag will be used.
If neither are specified, the release from the action is used.
A big thanks to those who have contributed to this repo:
Andrew Butler 💻 |
dependabot[bot] 💻 |
Andre_601 💻 |
Corey Butler 💻 |
Jirka Borovec 💻 |
Alexander Brandes 💻 |