snapshot.yml

 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22        with:
23          fetch-depth: 0
24          persist-credentials: false
25      - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
26        with:
27          go-version-file: go.mod
28      - uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
29        with:
30          version: "nightly"
31          distribution: goreleaser-pro
32          args: build --snapshot --clean
33        env:
34          GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}