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.

29 lines
757 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. - uses: actions/setup-go@v2
  15. with:
  16. go-version: '1.15'
  17. - run: echo https://github.com/tendermint/tendermint/blob/${GITHUB_REF#refs/tags/}/CHANGELOG.md#${GITHUB_REF#refs/tags/} > ../release_notes.md
  18. - name: Run GoReleaser
  19. uses: goreleaser/goreleaser-action@v2
  20. with:
  21. version: latest
  22. args: release --rm-dist --release-notes=../release_notes.md
  23. env:
  24. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}