fix: update deployment workflow to use dist directory
All checks were successful
CI / update (push) Successful in 1m10s

Changes deployment process to build in default 'build' directory, then safely deploy to 'dist' directory by stopping the service first, ensuring clean deployment without serving partial builds.
This commit is contained in:
2026-01-02 22:12:42 +01:00
parent 9e0e16aa68
commit 7ace841a8d

View File

@@ -32,4 +32,9 @@ jobs:
git fetch origin
git reset --hard origin/master
npm run build
sudo systemctl restart homepage.service
sudo systemctl stop homepage.service
mkdir -p dist
rm -rf dist/*
mv build/* dist/
rmdir build
sudo systemctl start homepage.service