This action can publish releases and upload assets. Existing releases can be replaced if you wish (delete & recreate). It supports GitHub Enterprise.
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
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. |
This action is inspired by the official typescript action template.