Skip to content

Commit

Permalink
ci(buf): publish draft buf
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Jun 30, 2023
1 parent fca7705 commit 975f631
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,19 @@ jobs:
if: steps.changed-proto-files.outputs.any_changed == 'true'
run: |
make proto-gen
publish-buf-proto:
runs-on: ubuntu-20.04
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Setup buf
uses: bufbuild/buf-setup-action@v1.14.0

- name: Push okp4 proto on buf registry
run:
buf push proto --draft ${{ github.ref_name }}

env:
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ jobs:
uses: bufbuild/buf-setup-action@v1.14.0

- name: Push okp4 proto on buf registry
uses: bufbuild/buf-push-action@v1
with:
input: 'proto'
buf_token: ${{ secrets.BUF_TOKEN }}
run:
buf push proto --tag ${{ github.sha }}

env:
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}

0 comments on commit 975f631

Please sign in to comment.