diff --git a/.github/workflows/deploy-playground-sync-gitee.yaml b/.github/workflows/deploy-playground-sync-gitee.yaml index 518ef97467f..57ac49f42df 100644 --- a/.github/workflows/deploy-playground-sync-gitee.yaml +++ b/.github/workflows/deploy-playground-sync-gitee.yaml @@ -1,11 +1,11 @@ -name: Deploy Playground And Sync to Gitee +name: Deploy Playground And Sync to Gitee V2 on: push: - branches: [dev, main] + branches: ['v2.x'] jobs: - deploy-playground-sync-gitee: + deploy-playground-sync-gitee-v2: runs-on: ubuntu-latest steps: - name: Checkout @@ -33,9 +33,7 @@ jobs: folder: packages/varlet-ui-playground/site single-commit: true clean: true - clean-exclude: | - v2/* - v2/** + target-folder: v2 - name: Sync to Gitee uses: wearerequired/git-mirror-action@master diff --git a/.github/workflows/deploy-site-sync-gitee.yaml b/.github/workflows/deploy-site-sync-gitee.yaml deleted file mode 100644 index b1045e6bc2a..00000000000 --- a/.github/workflows/deploy-site-sync-gitee.yaml +++ /dev/null @@ -1,42 +0,0 @@ -name: Deploy Site And Sync to Gitee - -on: - push: - branches: [dev, main] - -jobs: - deploy-site-sync-gitee: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install pnpm - run: corepack enable - - - name: Set node version to 18 - uses: actions/setup-node@v3 - with: - node-version: '18' - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install --no-frozen-lockfile && node scripts/bootstrap.mjs - - - name: Build site - run: pnpm build - - - name: Deploy site - uses: JamesIves/github-pages-deploy-action@v4.4.3 - with: - branch: gh-page - folder: packages/varlet-ui/site - single-commit: true - - - 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:varletjs/varlet.git - destination-repo: git@gitee.com:varlet/varlet-ui.git