Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/cb80/pubrel
- Owner: cb80
- License: mit
- Created: 2021-05-12T14:13:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-02T00:44:13.000Z (5 months ago)
- Last Synced: 2024-10-10T13:03:05.680Z (about 1 month ago)
- Topics: actions, assets, cicd, github, publish, release, upload
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/publish-a-release-and-upload-assets
- Size: 1.72 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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