File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -146,11 +146,15 @@ jobs:
146
146
147
147
# 2. ADDED AUTHENTICATION STEP
148
148
- name : Authenticate to Google Cloud
149
+ id : auth
149
150
uses : google-github-actions/auth@v2
150
151
with :
151
152
workload_identity_provider : ${{ secrets.WIF_PROVIDER }}
152
153
service_account : ${{ secrets.WIF_SERVICE_ACCOUNT }}
153
154
155
+ - name : Export Google Cloud Credentials
156
+ run : echo "GCP_SA_KEY=$(cat ${{ steps.auth.outputs.credentials_file_path }})" >> $GITHUB_ENV
157
+
154
158
- uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4
155
159
with :
156
160
name : build
@@ -164,6 +168,7 @@ jobs:
164
168
uses : FirebaseExtended/action-hosting-deploy@e2eda2e106cfa35cdbcf4ac9ddaf6c4756df2c8c # v0.10.0
165
169
with :
166
170
repoToken : " ${{ secrets.GITHUB_TOKEN }}"
171
+ firebaseServiceAccount : " ${{ env.GCP_SA_KEY }}"
167
172
projectId : pandev
168
173
expires : 30d
169
174
channelId : " pr${{ github.event.number }}"
You can’t perform that action at this time.
0 commit comments