From 9d3d5348000e5805da233de0d2544f3fc8e331c6 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 23 May 2021 09:02:27 +0800 Subject: [PATCH] build: add deploy-v2-site action (#8751) --- .github/workflows/deploy-v2-site.yml | 29 ++++++++++++++++++++++++++++ .github/workflows/sync.yml | 20 ------------------- 2 files changed, 29 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/deploy-v2-site.yml delete mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/deploy-v2-site.yml b/.github/workflows/deploy-v2-site.yml new file mode 100644 index 000000000..9902bc48e --- /dev/null +++ b/.github/workflows/deploy-v2-site.yml @@ -0,0 +1,29 @@ +name: Deploy V2 Site + +on: + push: + branches: [2.x] + paths: + - 'docs/**' + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v2 + with: + ref: '2.x' + + - name: Install dependencies + uses: bahmutov/npm-install@v1 + + - name: Build Site + run: npx --no-install vant-cli build-site + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@4.1.1 + with: + branch: gh-pages + folder: site + clean: false diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml deleted file mode 100644 index 14f00b92b..000000000 --- a/.github/workflows/sync.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Sync to Gitee - -on: - push: - branches: [dev] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - 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:youzan/vant.git - # 注意替换为你的 Gitee 目标仓库地址 - destination-repo: git@gitee.com:vant-contrib/vant.git