From 7b8919fbd96f7838fa55dea2ee0e52f5a35b7910 Mon Sep 17 00:00:00 2001 From: chrispi Date: Sat, 17 Oct 2026 01:41:39 +0200 Subject: [PATCH] Add CI/CD deployment to summer --- .gitea/workflows/deploy.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..afc2c05 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -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/ssh-action@v1.0.3 + 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 \ No newline at end of file