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