release.yml 727 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: release
  2. on:
  3. workflow_dispatch:
  4. push:
  5. tags:
  6. - "*"
  7. concurrency: ${{ github.workflow }}-${{ github.ref }}
  8. permissions:
  9. contents: write
  10. packages: write
  11. jobs:
  12. goreleaser:
  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: release --clean
  28. env:
  29. GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_TOKEN }}
  30. AUR_KEY: ${{ secrets.AUR_KEY }}