diff --git a/.github/workflows/build-all-matrix.yaml b/.github/workflows/build-all-matrix.yaml index 46d07cf4..05c8f99c 100644 --- a/.github/workflows/build-all-matrix.yaml +++ b/.github/workflows/build-all-matrix.yaml @@ -171,7 +171,7 @@ jobs: name: "hook-tarball-${{ matrix.kernel }}" path: out/*.tar.gz - release: + release-latest: name: Publish all Hooks to GitHub Releases needs: [ matrix_prep, build-hook-ensemble ] runs-on: ubuntu-latest @@ -238,3 +238,47 @@ jobs: checksum.txt prerelease: true tag_name: latest + + release-tag: + name: Publish all Hooks to GitHub Releases for a tag + needs: [ matrix_prep, build-hook-ensemble ] + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/v') + steps: + + - name: Checkout code + uses: actions/checkout@v4 + + - name: Download built Hook artifacts + uses: actions/download-artifact@v4 + with: + pattern: "hook-tarball-*" + merge-multiple: true + + - name: Generate Release Notes + run: | + generated_release_notes=$(gh api 'repos/{owner}/{repo}/releases/generate-notes' -F tag_name=${{github.ref}} --jq .body) + cat >>"$GITHUB_ENV" <<-EOF + RELEASE_NOTES<