From 72851a46f8afad5ae7058429c95c425c95749cef Mon Sep 17 00:00:00 2001 From: benny Date: Thu, 23 Apr 2026 18:45:52 +0000 Subject: [PATCH] Add .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..f25dd33 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: vps-host + steps: + - name: Deploy + run: | + set -e + cd ${{ secrets.APP_DIR }} + + git pull origin main + + python3 -m pip install -r requirements.txt --quiet + + npx tailwindcss \ + -i static/src/app.css \ + -o static/css/app.css \ + --minify + + sudo systemctl restart benny