update the params for mainnet (#2580) #49
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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]+" # Official release version tags e.g. v2.0.5 | |
- "v[0-9]+\\.[0-9]+\\.[0-9]+-rc[0-9]+" # Release candidate tags e.g. v1.0.3-rc4 | |
- "v[0-9]+\\.[0-9]+\\.[0-9]+-beta[0-9]+" # Beta releases tags e.g. v4.3.0-beta1 | |
concurrency: | |
group: ci-${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22" | |
cache: true | |
- name: Set Env | |
run: echo "TM_VERSION=$(go list -m github.com/cometbft/cometbft | sed 's:.* ::')" >> $GITHUB_ENV | |
# useful to test builds. However will require to add "push" rule to the "on" section | |
- name: generate and update swagger docs | |
run: | | |
make proto-swagger-gen | |
make proto-update-swagger-docs | |
- name: goreleaser test-build | |
uses: goreleaser/goreleaser-action@v6 | |
if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'Enable:ReleaseBuild') | |
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@v6 | |
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 }} |