release.yml 476 B

1234567891011121314151617181920212223242526
  1. name: goreleaser
  2. on:
  3. push:
  4. tags:
  5. - 'v*'
  6. jobs:
  7. goreleaser:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout
  11. uses: actions/checkout@v4
  12. - name: Set up Go
  13. uses: actions/setup-go@v5
  14. with:
  15. go-version: 1.22.x
  16. - name: Run GoReleaser
  17. uses: goreleaser/goreleaser-action@v6
  18. with:
  19. version: latest
  20. args: release --clean
  21. env:
  22. GITHUB_TOKEN: ${{secrets.GH_PAT}}