release.yml 448 B

12345678910111213141516171819202122232425
  1. name: Release
  2. on:
  3. push:
  4. tags:
  5. - v*
  6. permissions:
  7. contents: write
  8. jobs:
  9. goreleaser:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v4
  13. with:
  14. fetch-depth: 0
  15. - uses: actions/setup-go@v5
  16. with:
  17. go-version: stable
  18. - uses: goreleaser/goreleaser-action@v5
  19. with:
  20. args: release --rm-dist
  21. env:
  22. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}