clio/.forgejo/workflows/deploy-api.yml
Your Name 6c7b94adce
Some checks failed
Deploy API / deploy (push) Failing after 1s
Deploy UI / deploy (push) Successful in 1s
added it
2026-05-19 20:24:58 -04:00

45 lines
1.1 KiB
YAML

name: Deploy API
on:
push:
branches:
- main
paths:
- 'clio-api/**'
jobs:
deploy:
runs-on: native
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy API files
run: |
/run/current-system/sw/bin/rsync -av --delete \
--exclude '.venv' \
--exclude '__pycache__' \
--exclude '*.pyc' \
--exclude 'recordings/' \
--exclude 'recordings.db' \
--exclude 'keys/' \
--exclude 'data/' \
--exclude '.git' \
--exclude 'nixos/' \
./clio-api/ \
/work/hosting/clio/clio-api/
- name: Install dependencies
run: |
cd /work/hosting/clio/clio-api
/run/current-system/sw/bin/uv sync
- name: Restart service
run: |
sudo /run/current-system/sw/bin/systemctl restart phone-recorder
- name: Verify deployment
run: |
ls -la /work/hosting/clio/clio-api/
sleep 2
curl -s https://recordings.hallocks.xyz/health || echo "Health check failed"