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.

release.yml 817B

1234567891011121314151617181920212223242526272829303132
  1. name: Create new release
  2. on:
  3. push:
  4. tags:
  5. - v*
  6. jobs:
  7. release-binary:
  8. name: Release binary
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Set up Go 1.13
  12. uses: actions/setup-go@v1
  13. with:
  14. go-version: 1.13
  15. - name: Check out code
  16. uses: actions/checkout@v2
  17. # The unshallow step is required for GoReleaser's
  18. # changelog generation to work correctly.
  19. - name: Unshallow
  20. run: git fetch --prune --unshallow
  21. - name: Run release
  22. uses: goreleaser/goreleaser-action@v1
  23. with:
  24. version: latest
  25. args: release --rm-dist
  26. env:
  27. # This provides a more privelaged accss token
  28. # as it is needed for Homebrew Tap release
  29. GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}