From 61131221e305b24e25b5fafec40dd8d818ae47b3 Mon Sep 17 00:00:00 2001 From: chrispi Date: Sat, 17 Oct 2026 02:18:32 +0200 Subject: [PATCH] replace --- .../workflows/{deploy.yaml => bak.deploy.yaml} | 2 +- .gitea/workflows/deploy.yml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) rename .gitea/workflows/{deploy.yaml => bak.deploy.yaml} (93%) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/bak.deploy.yaml similarity index 93% rename from .gitea/workflows/deploy.yaml rename to .gitea/workflows/bak.deploy.yaml index 3b54e90..049d1b3 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/bak.deploy.yaml @@ -6,7 +6,7 @@ on: jobs: deploy: - runs-on: self-hosted + runs-on: wrath-runner steps: - name: Pull, Update and Restart Summer run: | diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..3a71062 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,17 @@ +name: Deploy Summer to Server + +on: + push: + branches: [ main ] + +jobs: + deploy: + runs-on: self-hosted + steps: + - name: Pull, Update and Restart Summer + run: | + 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