From a3e2d147e4ae1b00cf4294a34f376c8d2cf0c4dc Mon Sep 17 00:00:00 2001
From: syui <syui@syui.ai>
Date: Tue, 19 Mar 2024 13:37:29 +0900
Subject: [PATCH] fix

---
 .github/workflows/gh-pages.yml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
index 5934cdbcd..f811ebde5 100644
--- a/.github/workflows/gh-pages.yml
+++ b/.github/workflows/gh-pages.yml
@@ -5,6 +5,10 @@ on:
     branches:
     - main
 
+env:
+  GITEA_MAIL: ${{ secrets.GITEA_MAIL }}
+  GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
+
 jobs:
   build-deploy:
     runs-on: ubuntu-latest
@@ -16,12 +20,10 @@ jobs:
         ref: main
         submodules: true
         fetch-depth: 0
-      env:
-        GITEA_MAIL: ${{ secrets.GITEA_MAIL }}
-        GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
     - run: |
            yarn install
-           git clone https://${GITEA_TOKEN}@git.syui.ai/ai/vrma ./dist/vrma
+           rm -rf dist/vrma
+           git clone https://${GITEA_TOKEN}@git.syui.ai/ai/vrma dist/vrma
 
     - name: Build
       env: