release.yml 544 B

123456789101112131415161718192021222324
  1. name: release
  2. on:
  3. push:
  4. tags:
  5. - '*'
  6. jobs:
  7. goreleaser:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: check out
  11. uses: actions/checkout@v2
  12. - name: Unshallow
  13. run: git fetch --prune --unshallow
  14. - name: set up Go
  15. uses: actions/setup-go@v2
  16. with:
  17. go-version: 1.18
  18. - name: run goreleaser
  19. uses: goreleaser/goreleaser-action@v3
  20. with:
  21. version: latest
  22. args: release --rm-dist
  23. env:
  24. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}