Skip to content

Commit

Permalink
💭 version 🎀 control 🦇
Browse files Browse the repository at this point in the history
  • Loading branch information
devfemibadmus committed Jul 29, 2024
1 parent 170e64f commit af66823
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy to Firebase Hosting
on:
push:
branches:
- main
- master

jobs:
build_and_deploy:
Expand All @@ -26,5 +26,6 @@ jobs:
FIREBASE_SERVICE_ACCOUNT_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}
run: |
echo $FIREBASE_SERVICE_ACCOUNT_KEY > ${GITHUB_WORKSPACE}/firebase-key.json
firebase use --add --project $(jq -r '.project_id' firebase-key.json)
firebase deploy --only hosting --token "$(firebase auth:import-service-account-credentials firebase-key.json)"
gcloud auth activate-service-account --key-file=firebase-key.json
gcloud config set project $(jq -r '.project_id' firebase-key.json)
firebase deploy --only hosting --token "$(gcloud auth print-access-token)"

0 comments on commit af66823

Please sign in to comment.