From 2d84dbbb80941a3a31e8ce07154627817aab35c5 Mon Sep 17 00:00:00 2001 From: xpcool Date: Sat, 22 Aug 2026 14:30:31 +0800 Subject: [PATCH] ci: local checkout (no external actions) --- .gitea/workflows/deploy.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index c823fe5..5848cde 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,3 +1,4 @@ +# deployed by gitea act_runner (push to main/dev triggers this) name: Build and Deploy (app.xpcool.com) on: @@ -9,13 +10,22 @@ jobs: build-and-deploy: runs-on: ubuntu-latest steps: - - name: Install git (node image has no git) - run: apt-get update && apt-get install -y git + - name: Install git + run: | + apt-get update + apt-get install -y git - - name: Checkout - uses: actions/checkout@v4 + - name: Checkout (local Gitea, no external actions) + run: | + git clone --depth 1 https://oauth2:${{ github.token }}@git.xpcool.com/${{ github.repository }}.git . + git checkout ${{ github.sha }} + + - name: Use npmmirror registry (faster in CN) + run: npm config set registry https://registry.npmmirror.com - name: Enable pnpm via corepack + env: + COREPACK_NPM_REGISTRY: https://registry.npmmirror.com run: | corepack enable corepack prepare pnpm@10 --activate