From 8d15644159249a1fea97ce6c883aef40c7dc0706 Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Tue, 20 Jun 2023 09:41:03 +0800 Subject: [PATCH] chore: sync to gitee after push gh-pages (#43089) --- .github/workflows/site-deploy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/site-deploy.yml b/.github/workflows/site-deploy.yml index c29009f69c..79cfe9c07d 100644 --- a/.github/workflows/site-deploy.yml +++ b/.github/workflows/site-deploy.yml @@ -89,6 +89,15 @@ jobs: publish_dir: ./_site force_orphan: true + # Since force_orphan will not trigger Sync to Gitee, we need to force run it here + - name: Sync to Gitee + uses: wearerequired/git-mirror-action@v1 + env: + SSH_PRIVATE_KEY: ${{ secrets.GITEE_SSH_PRIVATE_KEY }} + with: + source-repo: 'git@github.com:ant-design/ant-design.git' + destination-repo: 'git@gitee.com:ant-design/ant-design.git' + - name: Deploy to Surge (with TAG) run: | export DEPLOY_DOMAIN=ant-design-${{ steps.publish-version.outputs.VERSION }}.surge.sh