personal-site/.gitea/workflows/deploy.yml
david b7c5b1e8b7
Some checks failed
Deploy to Pi / deploy (push) Has been cancelled
exec
2025-04-03 19:37:09 -07:00

29 lines
576 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 actions
git pull origin actions
- 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
sassc css/style.scss css/style.css
exec python3 -m http.server 8080 > server.log 2>&1