Skip to content

Commit

Permalink
🔀 deplo 📌 yment 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
devfemibadmus committed Jul 29, 2024
1 parent ae9b062 commit ac62f9d
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 @@ -13,7 +13,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Node.js
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
Expand All @@ -26,5 +26,5 @@ jobs:
FIREBASE_SERVICE_ACCOUNT_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}
run: |
echo $FIREBASE_SERVICE_ACCOUNT_KEY > ${GITHUB_WORKSPACE}/firebase-key.json
firebase use --add --alias default --token $(firebase login:ci)
firebase deploy --only hosting --token $(firebase login:ci)
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)"

0 comments on commit ac62f9d

Please sign in to comment.