-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(proto): automatically publish proto files (#571)
* ci(proto): automatically publish proto files * chore: add changes * ci(proto): also push to proto files on tag
- Loading branch information
Showing
2 changed files
with
22 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,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 }} |
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