-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GH action to publish proto files to BSR
GH Action includes: - check for lint errors - check for backward compatibility breaking changes
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |