Skip to content

GitHub Action to upload assets to a Release

License

Notifications You must be signed in to change notification settings

AButler/upload-release-assets

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Upload Release Assets - GitHub Action

GitHub Actions status

All Contributors

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.

Usage

jobs:
  build:
    # ...
    steps:
      - uses: AButler/upload-release-assets@v3.0
        with:
          files: "artifacts/*;packages/*.nupkg"
          repo-token: ${{ secrets.GITHUB_TOKEN }}

Inputs

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.

Contributors

A big thanks to those who have contributed to this repo:

Andrew Butler
Andrew Butler

💻
dependabot[bot]
dependabot[bot]

💻
Andre_601
Andre_601

💻
Corey Butler
Corey Butler

💻
Jirka Borovec
Jirka Borovec

💻
Alexander Brandes
Alexander Brandes

💻

About

GitHub Action to upload assets to a Release

Resources

License

Stars

Watchers

Forks

Packages

No packages published