From c82636b3c219d3853681035cf488474e44d25d1d Mon Sep 17 00:00:00 2001 From: haoziqaq <357229046@qq.com> Date: Thu, 2 May 2024 23:54:08 +0800 Subject: [PATCH] chore: remove gitee ci --- ...sync-gitee.yaml => deploy-playground.yaml} | 15 ++----- .../workflows/deploy-site-sync-gitee-v2.yaml | 44 ------------------- ...-site-sync-gitee.yaml => deploy-site.yaml} | 14 ++---- 3 files changed, 8 insertions(+), 65 deletions(-) rename .github/workflows/{deploy-playground-sync-gitee.yaml => deploy-playground.yaml} (63%) delete mode 100644 .github/workflows/deploy-site-sync-gitee-v2.yaml rename .github/workflows/{deploy-site-sync-gitee.yaml => deploy-site.yaml} (68%) diff --git a/.github/workflows/deploy-playground-sync-gitee.yaml b/.github/workflows/deploy-playground.yaml similarity index 63% rename from .github/workflows/deploy-playground-sync-gitee.yaml rename to .github/workflows/deploy-playground.yaml index 3d26663fd84..0676258a82b 100644 --- a/.github/workflows/deploy-playground-sync-gitee.yaml +++ b/.github/workflows/deploy-playground.yaml @@ -1,11 +1,11 @@ -name: Deploy Playground And Sync to Gitee +name: Deploy Playground on: push: branches: [main] jobs: - deploy-playground-sync-gitee: + deploy-playground runs-on: ubuntu-latest steps: - name: Checkout @@ -29,15 +29,8 @@ jobs: - name: Deploy site uses: JamesIves/github-pages-deploy-action@v4.4.3 with: - branch: playground-gh-page + branch: gh-page folder: packages/varlet-ui-playground/site single-commit: true clean: 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-playground.git + target-folder: playground \ No newline at end of file diff --git a/.github/workflows/deploy-site-sync-gitee-v2.yaml b/.github/workflows/deploy-site-sync-gitee-v2.yaml deleted file mode 100644 index daa8fa43c30..00000000000 --- a/.github/workflows/deploy-site-sync-gitee-v2.yaml +++ /dev/null @@ -1,44 +0,0 @@ -name: Deploy Site And Sync to Gitee V2 - -on: - push: - branches: ['v2.x'] - -jobs: - deploy-site-sync-gitee-v2: - 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 - clean: true - target-folder: v2 - - - 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 diff --git a/.github/workflows/deploy-site-sync-gitee.yaml b/.github/workflows/deploy-site.yaml similarity index 68% rename from .github/workflows/deploy-site-sync-gitee.yaml rename to .github/workflows/deploy-site.yaml index 509f27ce242..8e3285372d1 100644 --- a/.github/workflows/deploy-site-sync-gitee.yaml +++ b/.github/workflows/deploy-site.yaml @@ -1,11 +1,11 @@ -name: Deploy Site And Sync to Gitee +name: Deploy Site on: push: branches: [main] jobs: - deploy-site-sync-gitee: + deploy-site: runs-on: ubuntu-latest steps: - name: Checkout @@ -36,11 +36,5 @@ jobs: clean-exclude: | v2/* v2/**/* - - - 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 + playground/* + playground/**/*