From 8833461d9665ee95f12f010219f10fbea270882a Mon Sep 17 00:00:00 2001 From: Pino' Surace Date: Fri, 11 Feb 2022 10:11:50 +0100 Subject: [PATCH] Add GH action to publish proto files to BSR GH Action includes: - check for lint errors - check for backward compatibility breaking changes --- .github/workflows/proto-buf-publisher.yml | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/proto-buf-publisher.yml diff --git a/.github/workflows/proto-buf-publisher.yml b/.github/workflows/proto-buf-publisher.yml new file mode 100644 index 0000000000..e4c55b7532 --- /dev/null +++ b/.github/workflows/proto-buf-publisher.yml @@ -0,0 +1,29 @@ +name: Proto Buf Publishing - Action +# Protobuf runs buf (https://buf.build/) push updated proto files to https://buf.build/cosmwasm/wasmd +# This workflow is only run when a .proto file has been changed +on: + push: + branches: + - master + paths: + - 'proto/**' + +jobs: + push: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: bufbuild/buf-setup-action@v0.7.0 + + # lint checks + - uses: bufbuild/buf-lint-action@v1 + + # backward compatibility breaking checks + - uses: bufbuild/buf-breaking-action@v1 + with: + against: 'https://github.com/CosmWasm/wasmd.git#branch=master' + + # publish proto files + - uses: bufbuild/buf-push-action@v1 + with: + buf_token: ${{ secrets.BUF_TOKEN }} \ No newline at end of file