Skip to content

Commit 2de0b78

Browse files
committed
chore: Upgrade GitHub actions and Node.js version in deployment workflow, and adjust working directory for environment file creation
1 parent d31278e commit 2de0b78

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/deploy_functions_prod.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
# Step 1: Checkout the code
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818

1919
# Step 1.5: Environment variables
2020
- name: create env file
21-
working-directory: backend
21+
working-directory: backend/functions
2222
run: |
23-
cd functions
2423
touch .env
2524
echo "${{ secrets.FUNCTIONS_ENV_VARS_PROD }}" >> .env
2625
@@ -32,9 +31,9 @@ jobs:
3231

3332
# Step 3: Set up Node.js environment
3433
- name: Set up Node
35-
uses: actions/setup-node@v3
34+
uses: actions/setup-node@v4
3635
with:
37-
node-version: 19.7.0
36+
node-version: '20'
3837

3938
# Step 3.5: Download the ZIP file from Google Drive
4039
- name: Download Models ZIP
@@ -69,6 +68,8 @@ jobs:
6968
. venv/bin/activate
7069
npx firebase-tools --version
7170
python3.10 -m pip install -r requirements.txt
71+
npm install -g firebase-tools@14.2.0
72+
npx firebase-tools --version
7273
7374
# Step 6: deploy functions
7475
- name: Deploy functions

0 commit comments

Comments
 (0)