Skip to content

Commit 1979070

Browse files
rmnpptRoman Popat
andauthored
Fix/ci cd (#44)
* corrected quoting pattern on predeploy scripts * use official gcloud action to auth --------- Co-authored-by: Roman Popat <roman.popat@proton.me>
1 parent 12dc084 commit 1979070

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/build-deploy-merge.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,16 @@ jobs:
4040
- name: Install Firebase CLI
4141
run: npm install -g firebase-tools
4242

43-
- name: Create service account file
44-
run: echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BS3APP_DFB63 }}' > $HOME/gcloud.json
43+
- name: Authenticate to Google Cloud
44+
uses: google-github-actions/auth@v2
45+
with:
46+
credentials_json: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BS3APP_DFB63 }}'
4547

4648
- name: Deploy functions
4749
run: firebase deploy --only functions --project bs3app-dfb63
4850
working-directory: ./bs3-functions
4951
env:
5052
PERPLEXITY_SONAR_API_KEY: ${{ secrets.PERPLEXITY_SONAR_API_KEY }}
51-
GOOGLE_APPLICATION_CREDENTIALS: $HOME/gcloud.json
5253

5354
- name: Deploy to Firebase Hosting
5455
uses: FirebaseExtended/action-hosting-deploy@v0

0 commit comments

Comments
 (0)