2a9ee7f196
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 2.7.0 to 2.8.0. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](https://github.com/goreleaser/goreleaser-action/compare/v2.7.0...v2.8.0) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
# This workflow helps with creating releases.
|
|
# This job will only be triggered when a tag (vX.X.x) is pushed
|
|
name: Release
|
|
on:
|
|
push:
|
|
# Sequence of patterns matched against refs/tags
|
|
tags:
|
|
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-go@v2.1.4
|
|
with:
|
|
go-version: 1.17
|
|
- name: Set Env
|
|
run: echo "TM_VERSION=$(go list -m github.com/tendermint/tendermint | sed 's:.* ::')" >> $GITHUB_ENV
|
|
- name: Build
|
|
uses: goreleaser/goreleaser-action@v2.8.0
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
with:
|
|
version: latest
|
|
args: build --rm-dist --skip-validate # skip validate skips initial sanity checks in order to be able to fully run
|
|
env:
|
|
TM_VERSION: ${{ env.TM_VERSION }}
|
|
- name: Release
|
|
uses: goreleaser/goreleaser-action@v2.8.0
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
with:
|
|
version: latest
|
|
args: release --rm-dist --release-notes ./RELEASE_NOTES.md
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
TM_VERSION: ${{ env.TM_VERSION }} |