File tree 5 files changed +20
-4
lines changed
5 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 53
53
- name : Checkout repository
54
54
uses : actions/checkout@v4
55
55
56
- - uses : bufbuild/buf-action@v1
56
+ - name : Install buf
57
+ uses : bufbuild/buf-action@v1
57
58
with :
58
59
setup_only : true
59
60
Original file line number Diff line number Diff line change @@ -265,6 +265,11 @@ jobs:
265
265
repo-token : ${{ secrets.GITHUB_TOKEN }}
266
266
version : 3.x
267
267
268
+ - name : Install buf
269
+ uses : bufbuild/buf-action@v1
270
+ with :
271
+ setup_only : true
272
+
268
273
- name : Collect proto files
269
274
env :
270
275
NIGHTLY : true
Original file line number Diff line number Diff line change @@ -127,6 +127,11 @@ jobs:
127
127
repo-token : ${{ secrets.GITHUB_TOKEN }}
128
128
version : 3.x
129
129
130
+ - name : Install buf
131
+ uses : bufbuild/buf-action@v1
132
+ with :
133
+ setup_only : true
134
+
130
135
- name : Build
131
136
run : |
132
137
PACKAGE_NAME_PREFIX=${{ needs.package-name-prefix.outputs.prefix }}
Original file line number Diff line number Diff line change @@ -265,6 +265,11 @@ jobs:
265
265
repo-token : ${{ secrets.GITHUB_TOKEN }}
266
266
version : 3.x
267
267
268
+ - name : Install buf
269
+ uses : bufbuild/buf-action@v1
270
+ with :
271
+ setup_only : true
272
+
268
273
- name : Collect proto files
269
274
run : task protoc:collect
270
275
Original file line number Diff line number Diff line change @@ -258,10 +258,10 @@ tasks:
258
258
259
259
protoc:collect :
260
260
desc : Create a zip file containing all .proto files in DIST_DIR
261
- dir : rpc
262
261
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 .
265
265
266
266
protoc:format :
267
267
desc : Perform formatting of the protobuf definitions
You can’t perform that action at this time.
0 commit comments