]> git.r.bdr.sh - rbdr/mobius/blame - .github/workflows/go.yml
Add .goreleaser.yaml
[rbdr/mobius] / .github / workflows / go.yml
CommitLineData
aa91955a
JH
1name: goreleaser
2
3on:
4 push:
5 tags:
6 - '*'
7
8permissions:
9 contents: write
10
11jobs:
12 goreleaser:
13 runs-on: ubuntu-latest
14 steps:
15 - name: Checkout
16 uses: actions/checkout@v4
17 with:
18 fetch-depth: 0
19 - name: Set up Go
20 uses: actions/setup-go@v4
21 - name: Run GoReleaser
22 uses: goreleaser/goreleaser-action@v5
23 with:
24 distribution: goreleaser
25 # 'latest', 'nightly', or a semver
26 version: latest
27 args: release --clean
28 env:
29 GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}