29 lines
892 B
YAML
29 lines
892 B
YAML
|
|
name: Release
|
||
|
|
|
||
|
|
# Tag-triggered: when `git push origin <version>` lands, this builds the
|
||
|
|
# catalog tarball and publishes it + the sha256 + release.json to the
|
||
|
|
# Forgejo releases page for that tag. Running Furtka boxes pull from here
|
||
|
|
# on their daily furtka-catalog-sync.timer.
|
||
|
|
#
|
||
|
|
# Version tags only (CalVer like 26.0, 26.1-alpha, 27.0-beta). Random tags
|
||
|
|
# are ignored by the [0-9]* prefix.
|
||
|
|
on:
|
||
|
|
push:
|
||
|
|
tags: ['[0-9]*']
|
||
|
|
|
||
|
|
jobs:
|
||
|
|
release:
|
||
|
|
runs-on: ubuntu-latest
|
||
|
|
steps:
|
||
|
|
- uses: actions/checkout@v4
|
||
|
|
with:
|
||
|
|
fetch-depth: 0 # changelog section extraction needs history
|
||
|
|
|
||
|
|
- name: Build catalog tarball
|
||
|
|
run: ./scripts/build-catalog-tarball.sh "${GITHUB_REF_NAME}"
|
||
|
|
|
||
|
|
- name: Publish to Forgejo releases
|
||
|
|
env:
|
||
|
|
FORGEJO_TOKEN: ${{ secrets.FORGEJO_RELEASE_TOKEN }}
|
||
|
|
run: ./scripts/publish-catalog-release.sh "${GITHUB_REF_NAME}"
|