Skip to content

Commit

Permalink
feat: buf integration for proto release (flyteorg#300)
Browse files Browse the repository at this point in the history
* fix: integrated buf

Signed-off-by: Yuvraj <[email protected]>

* added protoc-gen-swagger

Signed-off-by: Yuvraj <[email protected]>

* buf mod update

Signed-off-by: Yuvraj <[email protected]>

* fix proto path in ci

Signed-off-by: Yuvraj <[email protected]>

Co-authored-by: Yuvraj <[email protected]>
  • Loading branch information
yindia and Yuvraj authored Jun 3, 2022
1 parent 5606e2c commit 688a51f
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/buf_publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish Buf Package

on:
release:
types: [created]

jobs:
buf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-push-action@v1
with:
buf_token: ${{ secrets.BUF_TOKEN }}
input: 'protos'
3 changes: 3 additions & 0 deletions buf.work.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version: v1
directories:
- protos
17 changes: 17 additions & 0 deletions protos/buf.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by buf. DO NOT EDIT.
version: v1
deps:
- remote: buf.build
owner: googleapis
repository: googleapis
branch: main
commit: 2aa0ce062bf84656ad01d979d5c64038
digest: b1-m2miB5uR65x_C-ImFfVIHaeVmyd1u5X7NugZ2vDbpJI=
create_time: 2022-06-01T15:05:55.95283Z
- remote: buf.build
owner: unionai
repository: protoc-gen-swagger
branch: main
commit: 560c4f34581045c4a4e59ffab94fceb0
digest: b1-eoEUXiWuST4tiiorwcO2Nvx_1pX0GHqRjUlc3sQocig=
create_time: 2022-06-02T06:14:15.441008Z
11 changes: 11 additions & 0 deletions protos/buf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: v1
name: buf.build/flyteorg/flyteidl
lint:
use:
- DEFAULT
breaking:
use:
- FILE
deps:
- buf.build/googleapis/googleapis
- buf.build/unionai/protoc-gen-swagger

0 comments on commit 688a51f

Please sign in to comment.