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 2c30068
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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 @@ -25,6 +25,6 @@ jobs:
env:
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)"
echo "${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}" > $GITHUB_WORKSPACE/firebase-key.json
export GOOGLE_APPLICATION_CREDENTIALS=$GITHUB_WORKSPACE/firebase-key.json
firebase deploy --only hosting --project todolist-2024

0 comments on commit 2c30068

Please sign in to comment.