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
- Host: GitHub
- URL: https://github.com/andelf/nightly-release
- Owner: andelf
- License: mit
- Created: 2021-11-30T12:47:26.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-05T15:30:43.000Z (about 2 years ago)
- Last Synced: 2026-02-21T13:13:12.135Z (4 months ago)
- Topics: actions, github-actions, nightly-build
- Language: TypeScript
- Homepage:
- Size: 1.79 MB
- Stars: 22
- Watchers: 1
- Forks: 4
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# 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)