personal-site/.gitea/workflows/deploy.yml
david 31b4b3698d
All checks were successful
Deploy to Pi / deploy (push) Successful in 0s
test commit
2025-04-03 19:20:38 -07:00

28 lines
511 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, if running
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 &