snapshot.yml 874 B

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