Skip to content

Latest commit

 

History

History
61 lines (50 loc) · 1.55 KB

File metadata and controls

61 lines (50 loc) · 1.55 KB

CI/CD

Description

This action can publish releases and upload assets. Existing releases can be replaced if you wish (delete & recreate). It supports GitHub Enterprise.

Examples

uses: cb80/pubrel@latest
with:
  files: |
    app.exe
    app

Use a different token:

uses: cb80/pubrel@latest
with:
  token: ${{ secrets.MY_TOKEN }}
  files: |
    app.exe
    app

Replace the latest release but not for other tags:

uses: cb80/pubrel@latest
with:
  replace: latest
  files: |
    app.exe
    app

Replace all releases:

uses: cb80/pubrel@latest
with:
  replace: true
  files: |
    app.exe
    app

Inputs

Option Use Default Description
ref optional github.ref The GitHub ref related to this release.
token optional secrets.GITHUB_TOKEN The token for authentication and authorization.
replace optional false Shall we delete an existing release?
You can also set this to a specific tag name if you don't want to replace any release.
files optional no files The list of files to be uploaded to the release.

Credits

This action is inspired by the official typescript action template.