Skip to content

Commit 5e65ea6

Browse files
authored
[Requires repository secret addition] Add Publish to Buf Github Action (#508)
_**READ BEFORE MERGING:** All PRs require approval by both Server AND SDK teams before merging! This is why the number of required approvals is "2" and not "1"--two reviewers from the same team is NOT sufficient. If your PR is not approved by someone in BOTH teams, it may be summarily reverted._ <!-- Describe what has changed in this PR --> **What changed?** Adds a GitHub Actions workflow to automate the process of pushing protocol buffers to the Buf registry on every push to the main branch. We need to set the `BUF_TOKEN` secret before merging this PR. <!-- Tell your future self why have you made these changes --> **Why?** We want to be able to depend on server protos from other repositories (e.g. api-cloud) using the buf package manager. <!-- Are there any breaking changes on binary or code level? --> **Breaking changes** None. <!-- If this breaks the Server, please provide the Server PR to merge right after this PR was merged. --> **Server PR** NA
1 parent e8fc1a5 commit 5e65ea6

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/push-to-buf.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Push to Buf Registry
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v**'
7+
branches:
8+
- master
9+
permissions:
10+
contents: read
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v4
17+
- uses: bufbuild/buf-action@v1
18+
with:
19+
version: 1.49.0
20+
token: ${{ secrets.BUF_TEMPORALIO_TOKEN }}

buf.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
version: v1
2+
name: buf.build/temporalio/api
23
deps:
34
- buf.build/grpc-ecosystem/grpc-gateway
45
- buf.build/googleapis/googleapis

0 commit comments

Comments
 (0)