From ed85b64d1a60558a41bc2f62245c05144175c877 Mon Sep 17 00:00:00 2001 From: Shiv Shankar Singh Date: Thu, 29 Feb 2024 19:57:10 +0530 Subject: [PATCH] Update firebase-hosting-merge.yml --- .github/workflows/firebase-hosting-merge.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index a1953110..d1e4c16d 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -11,22 +11,21 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - # Add a step to change the working directory to aiden_frontend - - name: Change working directory - run: cd aiden_frontend - # Specify the working directory for npm commands - name: Install dependencies run: npm ci working-directory: ./aiden_frontend - name: Build run: npm run build working-directory: ./aiden_frontend - - uses: FirebaseExtended/action-hosting-deploy@v0 + - name: Deploy to Firebase Hosting + uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}' firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_AIDEN_SHIV }}' - channelId: live projectId: aiden-shiv - # Specify the folder to deploy - publicDirectory: ./aiden_frontend/build + env: + # Ensure the Firebase CLI uses the correct project directory + FIREBASE_CLI_PREVIEWS: hostingchannels + working-directory: ./aiden_frontend +