Skip to content

Commit

Permalink
Update deploy-firebase.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sirishgf authored Nov 7, 2023
1 parent 29609b0 commit bc0b8e4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy-firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,26 @@ jobs:
working-directory: .
run: npm install

# - name: Authenticate to Google Cloud
# id: auth
# uses: google-github-actions/auth@v1
# with:
# credentials_json: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}

- name: Deploy function to Firebase
id: initial-deploy-step
continue-on-error: true
run: npx firebase-tools deploy --only functions:updateDashboard --project ${{ secrets.FIREBASE_PROJECT }}
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}

- name: Deploy function to Firebase
id: retry-deploy-step

if: steps.initial-deploy-step.outcome == 'failure'
run: npx firebase-tools deploy --only functions:updateDashboard --project ${{ secrets.FIREBASE_PROJECT }} --debug
env:
FIREBASE_TOKEN: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}



0 comments on commit bc0b8e4

Please sign in to comment.