Initial commit #22
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: Releasing | |
on: | |
push: | |
tags: | |
- '*' | |
permissions: | |
contents: write | |
id-token: write | |
attestations: write | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- | |
name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.24' | |
- | |
name: Set up cosign | |
uses: sigstore/cosign-installer@v3.8.1 | |
- | |
name: Set up homebrew deploy key | |
shell: bash | |
env: | |
HOMEBREW_GH_DEPLOY_KEY: ${{ secrets.HOMEBREW_GH_DEPLOY_KEY }} | |
run: | | |
echo $HOMEBREW_GH_DEPLOY_KEY | base64 -d > /tmp/HOMEBREW_GH_DEPLOY_KEY | |
chmod 700 /tmp/HOMEBREW_GH_DEPLOY_KEY | |
- | |
name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
distribution: goreleaser | |
version: '~> v2' | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/attest-build-provenance@v2 | |
with: | |
subject-checksums: dist/gcp-ip-list_${{ github.ref_name }}_checksums.txt |