Fix github actions: remove working-directory for ostp-control to avoid failure when absent

This commit is contained in:
ospab 2026-07-07 18:04:21 +03:00
parent dbd4ebc4e3
commit 8ca411a64b
1 changed files with 2 additions and 2 deletions

View File

@ -147,14 +147,14 @@ jobs:
with: with:
node-version: 20 node-version: 20
- name: Build Web Panel (skip if no source; use committed dist/) - name: Build Web Panel (skip if no source; use committed dist/)
working-directory: ostp-control
shell: bash shell: bash
run: | run: |
mkdir -p ostp-control/dist
cd ostp-control
if [ -f package.json ]; then if [ -f package.json ]; then
npm install && npm run build npm install && npm run build
else else
echo "ostp-control has no package.json — using committed dist/" echo "ostp-control has no package.json — using committed dist/"
mkdir -p dist
[ -f dist/index.html ] || echo '<!doctype html><title>OSTP</title>' > dist/index.html [ -f dist/index.html ] || echo '<!doctype html><title>OSTP</title>' > dist/index.html
fi fi