Skip to content

ci: support releasing proto definitions to BSR #9

ci: support releasing proto definitions to BSR

ci: support releasing proto definitions to BSR #9

Workflow file for this run

name: buf-ci
on:
push:
branches:
- main
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"
pull_request:
permissions:
contents: read
pull-requests: write
jobs:
buf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v1
with:
token: ${{ secrets.BUF_TOKEN }}
input: "pb"
breaking-against: 'https://github.com/celestiaorg/nmt.git#branch=main,ref=HEAD~1,subdir=pb'
# Run breaking change, lint, and format checks for Protobuf sources against all branches,
# 'pb' subdirectory, then push to the Buf Schema Registry once validated
lint: true
format: true
breaking: true