Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cb80/pubrel

Publish GitHub releases and upload assets.
https://github.com/cb80/pubrel

actions assets cicd github publish release upload

Last synced: 3 days ago
JSON representation

Publish GitHub releases and upload assets.

Awesome Lists containing this project

README

        

![CI/CD](https://github.com/cb80/pubrel/workflows/CI/CD/badge.svg)
[![](https://img.shields.io/badge/GitHub-Marketplace-blue)](https://github.com/marketplace/actions/publish-a-release-and-upload-assets)

# 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][tstpl].

[tstpl]: https://github.com/actions/typescript-action