Skip to content

Commit 82849e2

Browse files
authored
Simplify CI workflow to build only backend
Removed frontend build steps and focused on backend deployment.
1 parent 7984a14 commit 82849e2

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

‎.github/workflows/main_todoapp-backend.yml‎

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,17 @@ jobs:
1717
with:
1818
node-version: '22.x'
1919

20-
# 1. Build Frontend
21-
- name: Build Frontend
22-
working-directory: frontend
23-
run: |
24-
npm install
25-
npm run build
26-
env:
27-
VITE_API_URL: ${{ secrets.VITE_API_URL }}
28-
29-
# 2. Build Backend
20+
# Only build the Backend now
3021
- name: Build Backend
3122
working-directory: backend
3223
run: |
3324
npm install
3425
npm run build --if-present
3526
36-
# 3. Prepare the deployment folder
37-
# We create a clean 'deploy' folder to avoid path nesting issues
3827
- name: Prepare Deployment Folder
3928
run: |
4029
mkdir deploy
4130
cp -r backend/* deploy/
42-
# If your backend serves the frontend, copy it here:
43-
# mkdir -p deploy/public
44-
# cp -r frontend/dist/* deploy/public/
4531
4632
- name: Upload artifact
4733
uses: actions/upload-artifact@v4
@@ -60,7 +46,7 @@ jobs:
6046
uses: actions/download-artifact@v4
6147
with:
6248
name: node-app
63-
path: ./release # Download into a subfolder to keep root clean
49+
path: ./release
6450

6551
- name: Login to Azure
6652
uses: azure/login@v2

0 commit comments

Comments
 (0)