Skip to content

Commit

Permalink
Merge pull request #37 from EthanBonsignori/gh-action-env
Browse files Browse the repository at this point in the history
add env to action
  • Loading branch information
EthanBonsignori authored Mar 6, 2024
2 parents 787fed1 + e0a5f7f commit f87dc75
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Create .env
run: |
touch .env
echo FIREBASE_API_KEY=${{ secrets.FIREBASE_API_KEY }} >> .env
echo FIREBASE_AUTH_DOMAIN=${{ secrets.FIREBASE_AUTH_DOMAIN }} >> .env
echo FIREBASE_DATABASE_URL=${{ secrets.FIREBASE_DATABASE_URL }} >> .env
echo FIREBASE_PROJECT_ID=${{ secrets.FIREBASE_PROJECT_ID }} >> .env
echo FIREBASE_STORAGE_BUCKET=${{ secrets.FIREBASE_STORAGE_BUCKET }} >> .env
echo FIREBASE_MESSAGING_SENDER_ID=${{ secrets.FIREBASE_MESSAGING_SENDER_ID }} >> .env
echo FIREBASE_APP_ID=${{ secrets.FIREBASE_APP_ID }} >> .env
echo FIREBASE_MEASUREMENT_ID=${{ secrets.FIREBASE_MEASUREMENT_ID }} >> .env
cat .env
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
Expand Down

0 comments on commit f87dc75

Please sign in to comment.