Trainer_LLM/.gitea/workflows/deploy.yml
Lars 9fb399b3d7
Some checks failed
Deploy (host runner, absolute actions) / deploy (push) Failing after 26s
ping / test (push) Has been cancelled
.gitea/workflows/deploy.yml aktualisiert
2025-08-10 15:14:20 +02:00

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