From 7731e94e1feedf3cccd6408e1428068b268337f1 Mon Sep 17 00:00:00 2001 From: yevkim Date: Tue, 26 Nov 2024 22:59:03 +0800 Subject: [PATCH] Fix deploy functions --- .github/workflows/deploy_functions.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy_functions.yml b/.github/workflows/deploy_functions.yml index a85c0b7..85e9854 100644 --- a/.github/workflows/deploy_functions.yml +++ b/.github/workflows/deploy_functions.yml @@ -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 firebase-tools@13.25.0 - 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