diff --git a/.github/workflows/proto-registry.yaml b/.github/workflows/proto-registry.yaml new file mode 100644 index 00000000..41f64842 --- /dev/null +++ b/.github/workflows/proto-registry.yaml @@ -0,0 +1,20 @@ +name: Publish to Buf Schema Registry +# Protobuf runs buf (https://buf.build/) push updated proto files to https://buf.build/cosmos/cosmos-sdk +# This workflow is only run when a .proto file has been changed +on: + push: + branches: [main] + tags: [v*] + paths: + - "proto/**" + +jobs: + push: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: bufbuild/buf-setup-action@v1 + - uses: bufbuild/buf-push-action@v1 + with: + input: proto + buf_token: ${{ secrets.BUF_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 0540e4e0..78941e04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,8 @@ Contains all the PRs that improved the code without changing the behaviors. ## [Unreleased] ### Added +- [#571](https://github.com/archway-network/archway/pull/571) - Automatically +publish proto files to buf.build ### Changed