Skip to content

jaywcjlove/github-action-upload-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

Release Upload Assets

Buy me a coffee CI

Upload multiple assets to a release, or use GitHub Actions to upload assets to a specific release

Example Usage

- name: Release Upload Assets
  uses: jaywcjlove/github-action-upload-assets@main
  if: steps.create_tag.outputs.successful == 'true'
  with:
    asset-path: '["./target/release/sgo-*"]'

Upload a file to a specified tag

- name: Release Upload Assets
  uses: jaywcjlove/github-action-upload-assets@main
  if: steps.create_tag.outputs.successful == 'true'
  with:
    tag: v0.3.0
    asset-path: '["./target/release/sgo-*"]'

Continue on error

- name: Release Upload Assets
  uses: jaywcjlove/github-action-upload-assets@main
  continue-on-error: true
  with:
    tag: v0.3.0
    asset-path: '["./target/release/sgo-*"]'
- name: Create Tag
  id: create_tag
  uses: jaywcjlove/create-tag-action@main

- name: Release Upload Assets
  uses: jaywcjlove/github-action-upload-assets@main
  continue-on-error: true
  with:
    tag: ${{ steps.create_tag.outputs.version }}
    asset-path: '["./target/release/sgo-*"]'

Inputs

  • asset-path The paths to the assets you want to upload as a JSON array. You can use a glob pattern.
  • tag Specify the release tag name, for example: v1.23.12

Outputs

  • browser_download_urls The URL users can navigate to in order to download the uploaded asset

See Also

License

Licensed under the MIT License.