We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3dfffb commit 2586394Copy full SHA for 2586394
1 file changed
.github/workflows/main.yml
@@ -19,10 +19,14 @@ jobs:
19
- name: Build Hugo site
20
run: hugo -D
21
22
- - name: Setup GCP Credentials
23
- run: echo "${{ secrets.GCP_SA_KEY }}" > $HOME/gcp-key.json
+ - name: Authenticate to Google Cloud
+ uses: google-github-actions/auth@v2
24
+ with:
25
+ credentials_json: ${{ secrets.GCP_SA_KEY }}
26
- - - name: Sync files to GCS
- env:
27
- GOOGLE_APPLICATION_CREDENTIALS: $HOME/gcp-key.json
28
- run: gsutil -m rsync -r ./public gs://${{ secrets.GCP_BUCKET }}
+ - name: Upload files to GCS
+ uses: google-github-actions/upload-cloud-storage@v1
29
30
+ path: ./public
31
+ destination: ${{ secrets.GCP_BUCKET }}
32
+ parent: false
0 commit comments