From c920bcff0131daa17f8d927d8d8ffea667c7228c Mon Sep 17 00:00:00 2001 From: acbin <44314231+acbin@users.noreply.github.com> Date: Wed, 23 Apr 2025 20:28:58 +0800 Subject: [PATCH] chore: update workflow --- .github/workflows/deploy.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a39248f..b1e3816 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: jobs: - docs: + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -34,7 +34,7 @@ jobs: path: docs/.vitepress/dist deploy: - needs: docs + needs: build runs-on: ubuntu-latest permissions: pages: write @@ -46,16 +46,3 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 - - build: - runs-on: ubuntu-latest - if: github.repository == 'doocs/advanced-java' - needs: docs - steps: - - name: Sync to Gitee - uses: wearerequired/git-mirror-action@master - env: - SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} - with: - source-repo: git@github.com:doocs/advanced-java.git - destination-repo: git@gitee.com:Doocs/advanced-java.git