| 1 |
name: goreleaser |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
tags: |
| 6 |
- 'v*' |
| 7 |
|
| 8 |
permissions: |
| 9 |
contents: write # for goreleaser/goreleaser-action to create a GitHub release |
| 10 |
|
| 11 |
jobs: |
| 12 |
goreleaser: |
| 13 |
runs-on: ubuntu-latest |
| 14 |
steps: |
| 15 |
- |
| 16 |
name: Checkout |
| 17 |
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 18 |
with: |
| 19 |
fetch-depth: 0 |
| 20 |
- |
| 21 |
name: Set up Go |
| 22 |
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v5.2.0 |
| 23 |
with: |
| 24 |
go-version: 1.26.x |
| 25 |
- |
| 26 |
name: Run GoReleaser |
| 27 |
uses: goreleaser/goreleaser-action@5daf1e915a5f0af01ddbcd89a43b8061ff4f1a89 # v7.2.2 |
| 28 |
with: |
| 29 |
version: 2.13.3 |
| 30 |
args: release --clean |
| 31 |
env: |
| 32 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 33 |
CGO_ENABLED: 0 |