Skip to content

chore: add comment to specify version of goreleaser action #15

chore: add comment to specify version of goreleaser action

chore: add comment to specify version of goreleaser action #15

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
id-token: write
jobs:
check-pat:
runs-on: ubuntu-latest
steps:
- name: Check if homebrew tap token is valid
env:
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
run: |
curl -f \
-H "Authorization: token ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository_owner }}/homebrew-tap
goreleaser:
runs-on: ubuntu-latest
needs: check-pat
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version-file: "go.mod"
- name: Run govulncheck
run: go tool govulncheck ./...
- name: Set up cosign
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}