1name: snapshot
2
3on:
4 push:
5 branches:
6 - main
7
8permissions:
9 contents: read
10
11concurrency:
12 group: snapshot-${{ github.ref }}
13 cancel-in-progress: true
14
15jobs:
16 snapshot:
17 runs-on:
18 # Use our own large runners with more CPU and RAM for faster builds
19 group: releasers
20 steps:
21 - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
22 with:
23 fetch-depth: 0
24 persist-credentials: false
25 - uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
26 with:
27 go-version-file: go.mod
28 - uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
29 with:
30 version: "~> v2"
31 args: build --snapshot --clean
32 env:
33 GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}