This commit is contained in:
parent
f5305c10d8
commit
30999a2cb2
11 changed files with 2486 additions and 0 deletions
38
.forgejo/workflows/deploy-api.yml
Normal file
38
.forgejo/workflows/deploy-api.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
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: Verify deployment
|
||||
run: ls -la /work/hosting/clio/clio-api/
|
||||
Loading…
Add table
Add a link
Reference in a new issue