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: