]>
Commit | Line | Data |
---|---|---|
1 | name: goreleaser | |
2 | ||
3 | on: | |
4 | push: | |
5 | tags: | |
6 | - '*' | |
7 | ||
8 | permissions: | |
9 | contents: write | |
10 | ||
11 | jobs: | |
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@v5 | |
21 | with: | |
22 | go-version: '1.22.4' | |
23 | - name: Run GoReleaser | |
24 | uses: goreleaser/goreleaser-action@v5 | |
25 | with: | |
26 | distribution: goreleaser | |
27 | # 'latest', 'nightly', or a semver | |
28 | version: latest | |
29 | args: release --clean | |
30 | env: | |
31 | GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |