fix(blob)!: tendermint compatible commitment proof json marshall #9671
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
name: CI and Release | |
on: | |
merge_group: | |
push: | |
branches: | |
- main | |
tags: | |
- '**' | |
release: | |
types: [published] | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
tag-as: | |
description: 'Tag for snapshot release (optional)' | |
required: false | |
jobs: | |
# set up go version for use through pipelines, setting | |
# variable one time and setting outputs to access passing it | |
# to other jobs | |
setup: | |
runs-on: ubuntu-latest | |
env: | |
# upgrade go version throughout pipeline here | |
GO_VERSION: "1.23" | |
outputs: | |
go-version: ${{ steps.set-vars.outputs.go-version }} | |
branch: ${{ steps.trim_ref.outputs.branch }} | |
debug: ${{ steps.debug.outputs.debug }} | |
steps: | |
- name: Set go version | |
id: set-vars | |
run: echo "go-version=${{env.GO_VERSION}}" >> "$GITHUB_OUTPUT" | |
- name: Trim branch name | |
id: trim_ref | |
run: | | |
echo "branch=$(${${{ github.ref }}:11})" >> $GITHUB_OUTPUT | |
- name: Set debug output | |
id: debug | |
run: | | |
if [[ "${{ runner.debug }}" == "true" ]]; then | |
echo "debug=true" >> $GITHUB_ENV | |
else | |
echo "debug=false" >> $GITHUB_ENV | |
fi | |
# Dockerfile Linting | |
hadolint: | |
uses: celestiaorg/.github/.github/workflows/[email protected] # yamllint disable-line rule:line-length | |
with: | |
dockerfile: Dockerfile | |
yamllint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: celestiaorg/.github/.github/actions/[email protected] | |
markdown-lint: | |
name: Markdown Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- run: | | |
npm install -g [email protected] | |
markdownlint --config .markdownlint.yaml '**/*.md' | |
go-ci: | |
needs: setup | |
uses: ./.github/workflows/go-ci.yml | |
with: | |
go-version: ${{ needs.setup.outputs.go-version }} | |
# Generate the release with goreleaser to include pre-built binaries | |
goreleaser: | |
needs: [setup] | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'workflow_dispatch' || | |
github.event_name == 'release' | |
permissions: "write-all" | |
steps: | |
- uses: actions/checkout@v4 | |
- run: git fetch --force --tags | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ needs.setup.outputs.go-version }} | |
- name: Bump version and push tag | |
if: ${{ github.event_name == 'workflow_dispatch' }} && ${{ inputs.tag-as }} != '' | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
custom_tag: ${{ inputs.tag-as }} | |
- name: Import GPG key | |
id: import_gpg | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.GPG_SIGNING_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
# Generate the binaries and release | |
- uses: goreleaser/goreleaser-action@v6 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} | |
upload-docs: | |
needs: goreleaser | |
if: github.event_name == 'release' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: | | |
make openrpc-gen > openrpc.json | |
gh release upload ${{github.event.release.tag_name}} openrpc.json | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |