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

https://github.com/andelf/nightly-release

A Github Action to create and update a Nightly Release
https://github.com/andelf/nightly-release

actions github-actions nightly-build

Last synced: about 2 months ago
JSON representation

A Github Action to create and update a Nightly Release

Awesome Lists containing this project

README

          


andelf/nightly-release status

# andelf/nightly-release

This action is use to create/update a nightly release.

- Update Release name with simple template with date
- Create/change `nightly` tag to head ref
- Remove old assets, and upload new ones
- Skip releasing automatically when there are no new commits since the last nightly run (`only-when-changed`, default `true`)

## Usage

```yaml
- name: Update Nightly Release
uses: andelf/nightly-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly
name: 'Desktop App Nightly Release $$'
prerelease: true
body: 'TODO: Add nightly release notes'
files: |
./SHA256SUMS.txt
./*.zip
./*.dmg
./*.exe
./*.AppImage
```

## Inputs

| Name | Default | Description |
| --- | --- | --- |
| `tag_name` | `nightly` | Tag pointed at the current ref. |
| `name` | `Nightly Release @ $$` | Release name. `$$` is replaced with `YYYYMMDD`. |
| `body` | — | Inline release notes. |
| `body_path` | — | Path to a file containing release notes. |
| `files` | — | Newline-separated globs for asset files to upload. |
| `prerelease` | `true` | Mark the release as prerelease. |
| `only-when-changed` | `true` | When `true`, skip the run entirely if the existing nightly tag already points at the current commit SHA. Set to `false` to force a release on every run. |

## Outputs

| Name | Description |
| --- | --- |
| `url` | URL of the release (set even when skipped). |
| `id` | Release ID (set even when skipped). |
| `upload_url` | Asset upload URL (set even when skipped). |
| `assets` | JSON of the uploaded assets (only set when assets were uploaded). |
| `skipped` | `'true'` when the run was skipped because the commit was unchanged. |

## Demo

[logseq/logseq](https://github.com/logseq/logseq) is using this action to create nightly releases.

[Nightly Release Page](https://github.com/logseq/logseq/releases/tag/nightly)