mirror of https://github.com/ospab/ostp.git
Fix github actions: remove working-directory for ostp-control to avoid failure when absent
This commit is contained in:
parent
dbd4ebc4e3
commit
8ca411a64b
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue