From 070ab369bb56c2408f2e231ee4f3144effc9c8f8 Mon Sep 17 00:00:00 2001 From: benny Date: Thu, 23 Apr 2026 19:32:36 +0000 Subject: [PATCH] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 28726e1..f5b5b03 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,5 +1,32 @@ -- name: Pull latest code +name: Deploy + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: vps-host + steps: + - name: Pull latest code run: | ls /var/www/ cd /var/www/bennysblog - git pull origin main \ No newline at end of file + git pull origin main + + - name: Install Python dependencies + run: | + cd /var/www/bennysblog + python3 -m pip install -r requirements.txt --quiet + + - name: Build CSS + run: | + cd /var/www/bennysblog + npx tailwindcss \ + -i static/src/app.css \ + -o static/css/app.css \ + --minify + + - name: Restart service + run: sudo systemctl restart benny