Skip to content

Commit

Permalink
chore: add upload to gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanngocptn committed Jul 10, 2024
1 parent 698f9d5 commit 9351ffe
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/static-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,19 @@ jobs:
git push origin gh-pages
} || {
exit 0
}
}
- name: Authen GCP
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}"

- name: Setup GCP
uses: google-github-actions/setup-gcloud@v2

- name: Upload to GCP Storage
if: ${{ env.TRIGGERING_REF == 'main' }}
uses: google-github-actions/upload-cloud-storage@v2
with:
path: index.html
destination: ${{ secrets.BUCKET_NAME }}

0 comments on commit 9351ffe

Please sign in to comment.