A simple GitHub Action for uploading release assets to GitHub Releases. Automates the process of attaching files to releases in CI/CD workflows, supporting flexible configuration and robust error handling.
- Automatic Draft Release: Creates a draft GitHub release on tag push.
- Asset Upload: Uploads specified files as release assets.
- Easy Integration: Minimal configuration required.
Add the following to your workflow (e.g., .github/workflows/release.yml
):
name: Release Upload Action
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
# ... your build steps ...
- uses: d1ceward/release-upload-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: |
bin/my-first-binary
bin/my-second-binary
Name | Description | Required | Example |
---|---|---|---|
token | GitHub token (with repo scope) |
Yes | ${{ secrets.GITHUB_TOKEN }} |
files | Newline-separated list of files to upload | Yes | bin/my-binary |
Contributions are welcome! To get started:
- Fork the repo: release-upload-action/fork
- Create a branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to your fork:
git push origin my-new-feature
- Open a Pull Request
By contributing, you agree to abide by the Code of Merit.
- Install the required Node.js version (see
.node-version
). - Enable pnpm:
corepack enable pnpm
- Install dependencies:
pnpm install
- d1ceward – creator and maintainer
Bug reports and pull requests are welcome on GitHub.