This commit is contained in:
1 parent
b93f4a8a62
commit
7b8919fbd9
1 file changed
+25
@@ -0,0 +1,25 @@
|
||||
name: Deploy Summer to Server
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
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
|
||||
Reference in new issue
Block a user