chore(release): cut v0.7.1 #20
Workflow file for this run
This file contains hidden or 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: | |
| - "v*" | |
| jobs: | |
| goreleaser: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Install syft (SBOM generator) | |
| uses: anchore/sbom-action/download-syft@v0 | |
| - name: Import GPG private key | |
| if: env.GPG_PRIVATE_KEY != '' | |
| run: | | |
| echo "$GPG_PRIVATE_KEY" | gpg --batch --import | |
| env: | |
| GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
| - name: Set GPG trust | |
| if: env.GPG_PRIVATE_KEY != '' | |
| run: | | |
| KEY_ID=$(gpg --list-keys --with-colons | awk -F: '/^pub/ {print $5; exit}') | |
| echo "$KEY_ID:6:" | gpg --import-ownertrust | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| version: "~> v2" # or 'latest' once you confirm it's v2+ | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
| # macOS Developer ID code-signing + notarytool submission. | |
| # All five must be set for the notarize step to run; missing | |
| # any one disables it (see .goreleaser.yaml `notarize:` and | |
| # docs/release/macos-notarization.md for the setup checklist). | |
| MACOS_SIGN_P12_BASE64: ${{ secrets.MACOS_SIGN_P12_BASE64 }} | |
| MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }} | |
| MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }} | |
| MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }} | |
| MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }} |