29 lines
726 B
YAML
29 lines
726 B
YAML
name: Deploy (host runner, absolute actions)
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: [ "linux_host" ] # muss zu den Runner-Labels passen
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://gitea.com/actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: https://gitea.com/actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Sync repository to /home/llmadmin
|
|
run: |
|
|
rsync -a --delete \
|
|
knowledge/ /home/llmadmin/knowledge/ \
|
|
llm-api/ /home/llmadmin/llm-api/ \
|
|
scripts/ /home/llmadmin/scripts/
|
|
|
|
- name: Reload API (optional)
|
|
run: |
|
|
sudo systemctl restart llm-api || true
|