From ce5b783f8b8260f1b47f4e3a507220d6e468f118 Mon Sep 17 00:00:00 2001 From: wanchun <445436867@qq.com> Date: Fri, 31 Mar 2023 16:03:15 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0pages=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docs.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5efeb243..41c4930b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,7 +2,7 @@ name: Deploy Docs on: push: branches: - - next + - master paths: - 'docs/**/**' - 'package.json' @@ -34,3 +34,21 @@ jobs: REMOTE_USER: root # 目标目录 TARGET: /data/web-packages/p/fesjs + + build-and-deploy-pages: + concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v3 + + - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. + run: | + pnpm i + pnpm docs:build + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4.3.3 + with: + branch: gh-pages # The branch the action should deploy to. + folder: docs/.vuepress/dist + token: ${{ secrets.ACCESS_TOKEN }}