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