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