Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
upload-cloud

GitHub Action

Release file

v2.6

Release file

upload-cloud

Release file

Adds a specific file to a specific GitHub Release (creating the Release if needed)

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Release file

uses: djnicholson/[email protected]

Learn more about this action in djnicholson/release-action

Choose a version

Add a file to a GitHub Release

This action adds a file to a GitHub Release in the current repo.

Inputs

token

Required A GitHub authentication token

release-name

The name to use if a new Release needs to be created (defaults to "Rolling build")

tag-name

The name to use to tag the Release (defaults to "v0.0-rolling")

asset-name

Required A descriptive name for the asset being added to the Release

file

Required The full path to the file to be added as an asset to the Release.

Example usage

uses: djnicholson/[email protected]
with:
  token: ${{ secrets.GITHUB_TOKEN }}
  asset-name: 'my-app.dmg'
  file: 'out/dist/my-app.dmg'
uses: djnicholson/[email protected]
with:
  token: ${{ secrets.GITHUB_TOKEN }}
  release-name: 'Latest rolling build'
  tag-name: 'v1.3-alpha'
  asset-name: 'my-app.dmg'
  file: 'out/dist/my-app.dmg'