From 929cb1966b295484aa3c0b8929d6d9274c67dbc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=82=A0=E5=B1=B1?= <17738440858@163.com> Date: Mon, 2 Mar 2026 16:39:21 +0800 Subject: [PATCH] fix: use self-hosted runner for CI/CD --- .gitea/workflows/deploy.yml | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index f0c1ffb..ea12108 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -9,29 +9,17 @@ on: jobs: build-and-deploy: - runs-on: ubuntu-latest + runs-on: self-hosted steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: '20' - - - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: 8 - - - name: Install dependencies - run: pnpm install - - - name: Build project - run: pnpm build - - - name: Deploy to server + - name: Build and Deploy run: | + cd /tmp + rm -rf tashow-build + git clone -b ${{ github.ref_name }} http://gitea.tashowz.com/tashow/tashow-manager.git tashow-build + cd tashow-build + pnpm install + pnpm build rsync -av --delete dist/ /home/1panel/www/sites/admin.petshy.tashowz.com/index/ + rm -rf /tmp/tashow-build echo "Deployed successfully!"