Skip to content

Commit e6ea68b

Browse files
committed
Add .zip archive publish to release workflow
1 parent 6f51175 commit e6ea68b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
push:
33
tags:
4-
- '*'
4+
- v[0-9]+.[0-9]+.[0-9]+
55

66
jobs:
77
goreleaser:
@@ -28,3 +28,13 @@ jobs:
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
31+
32+
# Build and publish .zip archive for Cloud Function deploys.
33+
- run: go mod vendor
34+
- run: zip -r gcp-runbatch-${GITHUB_REF#refs/tags/}.zip LICENSE *.go startup.py vendor
35+
- uses: google-github-actions/setup-gcloud@v0
36+
with:
37+
project_id: bitcomplete-oss-q2tc
38+
service_account_key: ${{ secrets.GCP_PUBLIC_BUCKET_WRITER_SERVICE_ACCOUNT_KEY }}
39+
export_default_credentials: true
40+
- run: gsutil cp gcp-runbatch-${GITHUB_REF#refs/tags/}.zip gs://bitcomplete-oss-public/gcp-runbatch/function/

0 commit comments

Comments
 (0)