add install to deploy
All checks were successful
OTA TV / deploy (push) Successful in 7s

This commit is contained in:
david 2025-04-03 21:35:42 -07:00
parent 7b58e834ad
commit dda3328667

View File

@ -1,4 +1,4 @@
name: Personal Website - Run Python HTTP Server name: OTA TV
on: on:
push: push:
@ -17,9 +17,20 @@ jobs:
git checkout main git checkout main
git pull origin 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 - name: Stop existing screen session, if running
run: | 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..." echo "Stopping existing screen session..."
screen -S ota_tv_web -X quit screen -S ota_tv_web -X quit
fi fi