name: Release # Tag-triggered: when `git push origin ` lands, this builds the # release tarball and publishes it + the sha256 + release.json to the # Forgejo releases page for that tag. Boxes then POST /api/furtka/update # to pull from here. # # Version tags only (pattern matches CalVer like 26.0-alpha, 26.1, 27.0-beta). # Documentation / 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: Install jq run: | apt-get update -qq apt-get install -y jq - name: Build release tarball run: ./scripts/build-release-tarball.sh "${GITHUB_REF_NAME}" - name: Publish to Forgejo releases env: FORGEJO_TOKEN: ${{ secrets.FORGEJO_RELEASE_TOKEN }} run: ./scripts/publish-release.sh "${GITHUB_REF_NAME}"