1name: build
2
3on:
4 workflow_dispatch:
5 push:
6 branches:
7 - main
8
9concurrency: ${{ github.workflow }}-${{ github.ref }}
10
11permissions:
12 contents: write
13 packages: write
14
15jobs:
16 build:
17 runs-on: ubuntu-latest
18 steps:
19 - uses: actions/checkout@v3
20 with:
21 fetch-depth: 0
22
23 - run: git fetch --force --tags
24
25 - uses: actions/setup-go@v5
26 with:
27 go-version: ">=1.23.2"
28
29 - run: go mod download
30 - uses: goreleaser/goreleaser-action@v6
31 with:
32 distribution: goreleaser
33 version: latest
34 args: build --snapshot --clean