Skip to content

Commit

Permalink
Fix deploy functions 12
Browse files Browse the repository at this point in the history
  • Loading branch information
yevkim committed Nov 27, 2024
1 parent 7de8578 commit 163b3bd
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/deploy_functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,20 @@ jobs:
- name: Create SA key
run: echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SCHEMESSG_V3_DEV }}' > $HOME/gcloud.json

# Step 5: Deploy Cloud Functions
- name: Deploy Cloud Functions
# Step 5: Prepare the environment
- name: Prepare the environment
working-directory: backend/functions
run: |
python3.10 -m venv venv
. venv/bin/activate
npx firebase-tools --version
python3.10 -m pip install -r requirements.txt
# Step 6: deploy functions
- name: Deploy functions
working-directory: backend
run: |
export GOOGLE_APPLICATION_CREDENTIALS=$HOME/gcloud.json
npx firebase-tools deploy --only functions --debug
echo "GOOGLE_APPLICATION_CREDENTIALS=$GOOGLE_APPLICATION_CREDENTIALS"
cat $GOOGLE_APPLICATION_CREDENTIALS
npx firebase-tools deploy --only functions --debug --token "${{ secrets.FIREBASE_TOKEN_SCHEMESSG_V3_DEV }}"

0 comments on commit 163b3bd

Please sign in to comment.