| name: goreleaser |
| |
| on: |
| push: |
| tags: ["*"] |
| |
| jobs: |
| goreleaser: |
| runs-on: ubuntu-latest |
| permissions: |
| contents: write |
| steps: |
| - name: Checkout |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| with: |
| fetch-depth: 0 |
| persist-credentials: false |
| - name: Set up Go |
| uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 |
| with: |
| cache: false |
| - name: Run GoReleaser |
| uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3 |
| with: |
| distribution: goreleaser |
| version: '~> v2' |
| args: release --clean |
| env: |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |