You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
646 B

  1. name: goreleaser
  2. on:
  3. push:
  4. tags:
  5. - '*'
  6. jobs:
  7. goreleaser:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout
  11. uses: actions/checkout@v2
  12. with:
  13. fetch-depth: 0
  14. - name: Set up Go
  15. uses: actions/setup-go@v2
  16. with:
  17. go-version: 1.16
  18. - name: Get packr
  19. run: go get -u github.com/gobuffalo/packr
  20. - name: Prepare
  21. run: git reset --hard
  22. - name: Run GoReleaser
  23. uses: goreleaser/goreleaser-action@v2
  24. with:
  25. version: latest
  26. args: release --rm-dist
  27. env:
  28. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}