Files
summer/.gitea/workflows/deploy.yml
T
chrispi fc5e33b396
Deploy Summer to Server / deploy (push) Successful in 1s
some new changes ffs
2026-10-17 03:50:25 +02:00

25 lines
591 B
YAML

name: Deploy Summer to Server
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: self-hosted
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
if [ -f "requirements.txt" ]; then
pip install -r requirements.txt --quiet
fi
sudo systemctl restart summer