Skip to content

Commit cc4b021

Browse files
committed
Using buf to produce protoc artifacts for release
1 parent 67eb95a commit cc4b021

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)