-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,22 +26,12 @@ jobs: | |
with: | ||
node-version: 18 | ||
|
||
# Step 3: Set up Python environment (since your backend relies on Python as well) | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10 | ||
|
||
# Step 4: Install Dependencies | ||
# Step 3: Install Dependencies | ||
- name: Install Dependencies | ||
run: | | ||
npm install -g [email protected] | ||
cd functions | ||
python -m venv venv | ||
source venv/bin/activate | ||
pip install --no-cache-dir -r requirements.txt | ||
# Step 5: Authenticate Firebase CLI | ||
# Step 4: Authenticate Firebase CLI | ||
- name: Authenticate Firebase CLI | ||
env: | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN_SCHEMES_V3_DEV }} | ||
|
@@ -50,7 +40,7 @@ jobs: | |
firebase auth:login:ci --project $FIREBASE_PROJECT_ID --token $FIREBASE_TOKEN | ||
firebase use --add $FIREBASE_PROJECT_ID --token $FIREBASE_TOKEN | ||
# Step 6: Deploy All Functions | ||
# Step 5: Deploy All Functions | ||
- name: Deploy Firebase Functions | ||
run: | | ||
firebase deploy --only functions --project $FIREBASE_PROJECT_ID | ||
|