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