Skip to content

Commit f77c497

Browse files
authored
Automatically deploy common component protos to the BSR. (#122)
1 parent f14add7 commit f77c497

3 files changed

Lines changed: 33 additions & 16 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: build-and-publish-protos
3+
on:
4+
pull_request:
5+
paths:
6+
- 'common-components/proto/**/*.proto'
7+
jobs:
8+
build-and-publish-protos:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- uses: bufbuild/buf-setup-action@v1.19.0
14+
15+
- name: Verify that protos build.
16+
run: buf build common-components/proto
17+
18+
- uses: bufbuild/buf-push-action@v1
19+
with:
20+
buf_token: ${{ secrets.BUF_TOKEN }}
21+
input: common-components/proto
22+
draft: ${{ github.ref_name != 'main'}}

.github/workflows/build-protos.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

common-components/proto/buf.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: v1
2+
name: buf.build/aip/common-components
3+
breaking:
4+
use:
5+
- FILE
6+
lint:
7+
use:
8+
- DEFAULT
9+
except:
10+
- PACKAGE_VERSION_SUFFIX
11+
enum_zero_value_suffix: _UNSPECIFIED

0 commit comments

Comments
 (0)