From e0a5f7f194ca5fe674a9b1b9b440edd3958ef5a4 Mon Sep 17 00:00:00 2001 From: Ethan Bonsignori Date: Wed, 6 Mar 2024 10:19:54 -0800 Subject: [PATCH] add action --- .github/workflows/firebase-hosting-merge.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 629fbb4..65ef342 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -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