This commit is contained in:
parent
7b58e834ad
commit
dda3328667
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user