-
Notifications
You must be signed in to change notification settings - Fork 312
39 lines (35 loc) · 1.19 KB
/
buf-push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: protobuf
# We're keeping the protodefs stable at v1, via buf lint checks on PRs.
# Therefore it's safe to publish on every commit to main (and also tags).
on:
push:
branches:
- main
# Consider automatically publishing on upcoming protocol changes,
# to allow integration in downstream, e.g. web dependencies.
# - protocol/*
tags:
- '**'
# Also support ad-hoc calls for workflow
workflow_call:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1
with:
buf_api_token: ${{ secrets.BUF_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
input: 'proto'
- uses: bufbuild/buf-lint-action@v1
with:
input: 'proto'
# N.B. We don't check for breaking changes here, because we do so per-PR, and notify there.
# Occasionally we'll make breaking changes, the PR CI is notification enough of that.
# We still want to publish the resulting changes to the BSR.
- uses: bufbuild/buf-push-action@v1
with:
buf_token: ${{ secrets.BUF_TOKEN }}
input: 'proto/penumbra'