From 92028c63934e278222a9918558ef51aaeba4d206 Mon Sep 17 00:00:00 2001 From: ZiuChen <457353192@qq.com> Date: Tue, 16 Aug 2022 10:02:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=B1workflow=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/blank.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 6200ec5d..a4acffed 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -41,25 +41,24 @@ jobs: - name: Build VuePress site run: pnpm docs:build - - name: Deploy + - name: Deploy Github Pages uses: JamesIves/github-pages-deploy-action@releases/v4 with: folder: docs/.vuepress/dist branch: gh-pages - # ssh-key: ${{ secrets.DEPLOY_PRIVATE_KEY }} - # - name: Sync to Gitee - # uses: wearerequired/git-mirror-action@master - # env: - # # 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY - # SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} - # with: - # # 注意替换为你的 GitHub 源仓库地址 - # source-repo: git@github.com:doocs/leetcode.git - # # 注意替换为你的 Gitee 目标仓库地址 - # destination-repo: git@gitee.com:Doocs/leetcode.git + - name: Sync to Gitee + uses: wearerequired/git-mirror-action@master + env: + # 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY + SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} + with: + # 注意替换为你的 GitHub 源仓库地址 + source-repo: git@github.com:ZiuChen/ZiuChen.github.io.git + # 注意替换为你的 Gitee 目标仓库地址 + destination-repo: git@gitee.com:ZiuChen/ZiuChen.git - - name: Build Gitee Pages + - name: Deploy Gitee Pages uses: yanglbme/gitee-pages-action@main with: # 注意替换为你的 Gitee 用户名