From 7333065b3bb44bc346a933dda034b1e463915d38 Mon Sep 17 00:00:00 2001 From: sidhdhi canopas Date: Mon, 9 Sep 2024 11:17:32 +0530 Subject: [PATCH] refactor --- .github/workflows/function_deploy.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/function_deploy.yml b/.github/workflows/function_deploy.yml index 67866e58..108b9ba5 100644 --- a/.github/workflows/function_deploy.yml +++ b/.github/workflows/function_deploy.yml @@ -25,8 +25,8 @@ jobs: with: node-version: 18 - - name: Cache Dependencies - uses: actions/cache@v3 + - uses: actions/cache@v3 + name: Cache Dependencies id: cache-dependencies with: path: | @@ -41,26 +41,16 @@ jobs: run: | npm ci - - name: Print Working Directory - run: | - echo "Working directory: $(pwd)" - - name: Install Firebase CLI run: npm install -g firebase-tools - - name: Print Working Directory - run: | - echo "Working directory: $(pwd)" - - name: Prepare Google Application Credentials env: GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} run: | cd khelo echo $GOOGLE_APPLICATION_CREDENTIALS | base64 -di > functions/google-application-credentials.json - echo "Credentials file saved at:" - pwd - ls -la functions/google-application-credentials.json + export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/functions/google-application-credentials.json - name: Use Firebase Dev run: |