personal-site/.gitea/workflows/deploy.yml
david 7dd7a5ef8e
Some checks failed
Deploy to Pi / deploy (push) Failing after 0s
script update
2025-04-03 19:04:53 -07:00

27 lines
470 B
YAML

name: Deploy to Pi
on:
push:
branches:
- actions
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Checkout code
run: |
cd ~/personal-site
git checkout main
git pull origin main
- name: Stop existing server
run: |
pkill -f 'python3 -m http.server' || true
- name: Start server
run: |
chmod +x ./start.sh
nohup ./start.sh > server.log 2>&1 &