Prepare to tag release 2024-07-01
.
#4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: ['**'] | |
permissions: | |
contents: read | |
jobs: | |
create: | |
permissions: | |
# Required to create the release | |
# and upload the release assets. | |
contents: write | |
# Required for Sigstore signing. | |
id-token: write | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/[email protected] | |
- run: | | |
gh release create "${GITHUB_REF_NAME}" \ | |
--generate-notes --latest --verify-tag \ | |
--repo "${GITHUB_REPOSITORY}" | |
gh release download "${GITHUB_REF_NAME}" \ | |
--archive tar.gz \ | |
--repo "${GITHUB_REPOSITORY}" | |
gh release download "${GITHUB_REF_NAME}" \ | |
--archive zip \ | |
--repo "${GITHUB_REPOSITORY}" | |
shell: bash | |
- uses: sigstore/[email protected] | |
with: | |
# N.B. This is a whitespace-separated string! | |
inputs: '*.tar.gz *.zip' | |
- run: | | |
gh release upload "${GITHUB_REF_NAME}" \ | |
*.tar.gz *.zip *.sigstore \ | |
--repo "${GITHUB_REPOSITORY}" | |
shell: bash |