Skip to content

Commit e32f44f

Browse files
fix: Update packaging scripts for frontend and backend services
1 parent d522e07 commit e32f44f

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

azure.yaml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,31 @@ services:
6565
prepackage:
6666
windows:
6767
shell: pwsh
68-
run: ../scripts/package_frontend.ps1
68+
run: |
69+
mkdir dist -Force
70+
rm dist/* -r -Force
71+
poetry install
72+
poetry export -o dist/requirements.txt
73+
cp *.py dist -Force
74+
cp backend dist -r -Force
75+
cd frontend
76+
npm install
77+
npm run build
6978
interactive: true
7079
continueOnError: false
7180
posix:
7281
shell: sh
73-
run: ../scripts/package_frontend.sh
82+
run: |
83+
set -eou pipefail
84+
mkdir -p dist
85+
rm -rf dist/*
86+
poetry install
87+
poetry export -o dist/requirements.txt
88+
cp *.py dist
89+
cp -r backend dist
90+
cd frontend
91+
npm install
92+
npm run build
7493
interactive: true
7594
continueOnError: false
7695

0 commit comments

Comments
 (0)