From 94bd34b83860d3dfd425dc1b35a853053f1365a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB?= Date: Sun, 23 Aug 2026 14:30:03 +0000 Subject: [PATCH] fix: use git clone instead of checkout action (no node required) --- .gitea/workflows/deploy.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index d74be04..eb2f122 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -10,14 +10,19 @@ jobs: runs-on: aliyun steps: - name: Checkout - uses: http://47.121.181.112:3000/wonder/checkout@v4 + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + run: | + git clone --depth 1 -b main \ + https://x-access-token:${GITEA_TOKEN}@47.121.181.112:3000/wonder/illustrated-algorithm.git \ + /tmp/illustrated-algorithm - name: Build Docker Image run: | docker build \ --cache-from illustrated-algorithm:latest \ -t illustrated-algorithm:latest \ - . + /tmp/illustrated-algorithm - name: Deploy Container run: |