diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 3b8b202..b16f439 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Personal Website - Run Python HTTP Server +name: OTA TV on: push: @@ -17,9 +17,20 @@ jobs: git checkout main git pull origin main + - name: Install dependencies + run: | + cd ~/ota-tv-web + if [ -f package-lock.json ] || [ -f package.json ]; then + echo "Installing npm dependencies..." + npm install + else + echo "No Node.js project found (missing package.json)" + exit 1 + fi + - name: Stop existing screen session, if running run: | - if screen -list | grep -q "ota_tv_web_server"; then + if screen -list | grep -q "ota_tv_web"; then echo "Stopping existing screen session..." screen -S ota_tv_web -X quit fi