Skip to content

Commit

Permalink
Add GH action to publish proto files to BSR
Browse files Browse the repository at this point in the history
GH Action includes:
- check for lint errors
- check for backward compatibility breaking changes
  • Loading branch information
pinosu committed Feb 11, 2022
1 parent 33d768c commit 8833461
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/proto-buf-publisher.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 8833461

Please sign in to comment.