Skip to content

Commit 8c9813f

Browse files
authored
Update deploy-live.yml
Move to Google WIF
1 parent 5002fb2 commit 8c9813f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/deploy-live.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ jobs:
5050
node-version: "20"
5151
cache: "yarn"
5252

53+
- name: Authenticate to Google Cloud
54+
id: auth
55+
uses: google-github-actions/auth@b7593ed2efd1c1617e1b0254da33b86225adb2a5
56+
with:
57+
workload_identity_provider: ${{ secrets.WIF_PROVIDER }}
58+
service_account: ${{ secrets.WIF_SERVICE_ACCOUNT }}
59+
60+
- name: Export Google Cloud Credentials
61+
run: echo "GCP_SA_KEY=$(cat ${{ steps.auth.outputs.credentials_file_path }})" >> $GITHUB_ENV
62+
5363
- uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4
5464
with:
5565
name: build
@@ -62,7 +72,7 @@ jobs:
6272
uses: FirebaseExtended/action-hosting-deploy@0cbcac4740c2bfb00d632f0b863b57713124eb5a # v0.9.0
6373
with:
6474
repoToken: "${{ secrets.GITHUB_TOKEN }}"
65-
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_PANDEV }}"
75+
firebaseServiceAccount: "${{ env.GCP_SA_KEY }}"
6676
projectId: pandev
6777
channelId: live
6878
target: docusaurus-openapi.tryingpan.dev

0 commit comments

Comments
 (0)