goreleaser.yml 725 B

12345678910111213141516171819202122232425262728293031323334
  1. name: goreleaser
  2. on:
  3. workflow_dispatch:
  4. jobs:
  5. goreleaser:
  6. runs-on: ubuntu-latest
  7. steps:
  8. - name: Checkout
  9. uses: actions/checkout@v2
  10. with:
  11. fetch-depth: 0
  12. - name: Set up Go
  13. uses: actions/setup-go@v2
  14. with:
  15. go-version: 1.17
  16. - run: |
  17. # https://github.com/actions/setup-go/issues/107
  18. cp -f `which go` /usr/bin/go
  19. - name: Make All
  20. run: |
  21. ./package.sh
  22. - name: Run GoReleaser
  23. uses: goreleaser/goreleaser-action@v2
  24. with:
  25. version: latest
  26. args: release --rm-dist --release-notes=./Release.md
  27. env:
  28. GITHUB_TOKEN: ${{ secrets.GPR_TOKEN }}