build.yml 618 B

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