personal-site/.gitea/workflows/deploy.yml
david e57323aa3e
All checks were successful
Deploy to Pi / deploy (push) Successful in 0s
run update
2025-04-03 19:05:30 -07:00

28 lines
499 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: |
cd ~/personal-site
chmod +x ./start.sh
nohup ./start.sh > server.log 2>&1 &