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
779 B

  1. name: "Release"
  2. on:
  3. push:
  4. tags:
  5. - "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
  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.15
  18. - run: echo https://github.com/tendermint/tendermint/blob/${GITHUB_REF#refs/tags/}/CHANGELOG.md#${GITHUB_REF#refs/tags/} > ../release_notes.md
  19. - name: Run GoReleaser
  20. uses: goreleaser/goreleaser-action@v2
  21. with:
  22. version: latest
  23. args: release --rm-dist --release-notes=../release_notes.md
  24. env:
  25. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}