25 lines
660 B
YAML
25 lines
660 B
YAML
name: Deploy Summer to Server
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: wrath-runner
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Executing remote deploy via SSH
|
|
uses: appleboy/[email protected]
|
|
with:
|
|
host: ${{ secrets.SERVER_HOST }}
|
|
username: ${{ secrets. SERVER_USER }}
|
|
key: ${{ secrets.SERVER_SSH_KEY }}
|
|
script: |
|
|
cd /home/chrispi/scripts/telegram_bot/summer
|
|
git pull origin main
|
|
source venv/bin/activate
|
|
pip install -r requirements.txt --quiet
|
|
sudo systemctl restart summer |