Skip to content

Commit c3d05d6

Browse files
authored
Fixed protoc.zip release artifact missing google/rpc/status.proto (#2761)
* Using buf to produce protoc artifacts for release * Updated gh workflows
1 parent 67eb95a commit c3d05d6

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

Diff for: .github/workflows/check-protobuf-task.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ jobs:
5353
- name: Checkout repository
5454
uses: actions/checkout@v4
5555

56-
- uses: bufbuild/buf-action@v1
56+
- name: Install buf
57+
uses: bufbuild/buf-action@v1
5758
with:
5859
setup_only: true
5960

Diff for: .github/workflows/publish-go-nightly-task.yml

+5
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ jobs:
265265
repo-token: ${{ secrets.GITHUB_TOKEN }}
266266
version: 3.x
267267

268+
- name: Install buf
269+
uses: bufbuild/buf-action@v1
270+
with:
271+
setup_only: true
272+
268273
- name: Collect proto files
269274
env:
270275
NIGHTLY: true

Diff for: .github/workflows/publish-go-tester-task.yml

+5
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ jobs:
127127
repo-token: ${{ secrets.GITHUB_TOKEN }}
128128
version: 3.x
129129

130+
- name: Install buf
131+
uses: bufbuild/buf-action@v1
132+
with:
133+
setup_only: true
134+
130135
- name: Build
131136
run: |
132137
PACKAGE_NAME_PREFIX=${{ needs.package-name-prefix.outputs.prefix }}

Diff for: .github/workflows/release-go-task.yml

+5
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ jobs:
265265
repo-token: ${{ secrets.GITHUB_TOKEN }}
266266
version: 3.x
267267

268+
- name: Install buf
269+
uses: bufbuild/buf-action@v1
270+
with:
271+
setup_only: true
272+
268273
- name: Collect proto files
269274
run: task protoc:collect
270275

Diff for: Taskfile.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ tasks:
258258

259259
protoc:collect:
260260
desc: Create a zip file containing all .proto files in DIST_DIR
261-
dir: rpc
262261
cmds:
263-
- mkdir --parents ../{{.DIST_DIR}}
264-
- zip -r ../{{.DIST_DIR}}/{{.PROJECT_NAME}}_{{.VERSION}}_proto.zip * -i \*.proto
262+
- mkdir --parents {{.DIST_DIR}}
263+
- buf export . -o {{.DIST_DIR}}/proto
264+
- cd {{.DIST_DIR}}/proto && zip -r ../{{.PROJECT_NAME}}_{{.VERSION}}_proto.zip .
265265

266266
protoc:format:
267267
desc: Perform formatting of the protobuf definitions

0 commit comments

Comments
 (0)