Skip to content

Commit 40aa45f

Browse files
authored
Merge pull request #1750 from api-platform/feat/deploy_on_bucket
Add deploy on bucket steps
2 parents c5d171f + 53ea5a5 commit 40aa45f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/cd.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,14 @@ jobs:
4646
github_token: ${{ secrets.GITHUB_TOKEN }}
4747
publish_dir: ./public
4848
cname: api-platform.com
49+
50+
- name: Auth gcloud
51+
uses: google-github-actions/auth@v1
52+
with:
53+
credentials_json: ${{ secrets.BUCKET_CREDS }}
54+
55+
- name: 'Set up Cloud SDK'
56+
uses: 'google-github-actions/setup-gcloud@v1'
57+
58+
- name: Deploy on bucket
59+
run: gsutil -m rsync -d -r ./public gs://api-platform-website-v1/

0 commit comments

Comments
 (0)