Files
summer/.gitea/workflows/deploy.yml
T
2026-10-17 03:39:41 +02:00

22 lines
529 B
YAML

name: Deploy Summer to Server
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: wrath-runner
steps:
- name: Deploy Summers new code
run: |
cd /home/chrispi/scripts/telegram_bot/summer
git config --global --add safe.directory /home/chrispi/scripts/telegram_bot/summer
git fetch origin main
git reset --hard origin/main
source venv/bin/activate
pip install -r requirements.txt --quiet
sudo systemctl restart summer