Skip to content

d1ceward/release-upload-action

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

Release Upload Action

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.

Features

  • Automatic Draft Release: Creates a draft GitHub release on tag push.
  • Asset Upload: Uploads specified files as release assets.
  • Easy Integration: Minimal configuration required.

Usage

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

Inputs

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

Contributing

Contributions are welcome! To get started:

  1. Fork the repo: release-upload-action/fork
  2. Create a branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to your fork: git push origin my-new-feature
  5. Open a Pull Request

By contributing, you agree to abide by the Code of Merit.

Development

  1. Install the required Node.js version (see .node-version).
  2. Enable pnpm: corepack enable pnpm
  3. Install dependencies: pnpm install

License

MIT

Contributors

Bug reports and pull requests are welcome on GitHub.

About

A GitHub Action for uploading release assets to GitHub Releases.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks