From 052018c4623aa06d22ba13b549e5c7f796f26180 Mon Sep 17 00:00:00 2001 From: hemengyang Date: Thu, 19 May 2022 12:39:17 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E5=BF=98=E8=AE=B0?= =?UTF-8?q?=E7=9A=84=20install?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/actions/build-docs/action.yml | 14 ++++++++++++++ .github/workflows/release.yml | 5 +---- .github/workflows/website-preview.yml | 5 +---- 3 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 .github/actions/build-docs/action.yml diff --git a/.github/actions/build-docs/action.yml b/.github/actions/build-docs/action.yml new file mode 100644 index 0000000..5a296a3 --- /dev/null +++ b/.github/actions/build-docs/action.yml @@ -0,0 +1,14 @@ +name: Build Docs +description: Build Docs + +runs: + using: "composite" + steps: + - name: Setup Node Environment + uses: ./.github/actions/setup-node + + - name: Build Frontend + shell: bash + run: | + yarn install + yarn docs:build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b715966..8f56ca9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,11 +90,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup Node Environment - uses: ./.github/actions/setup-node - - name: Build Docs - run: yarn docs:build + uses: ./.github/actions/build-docs - name: Deploy to Netlify uses: nwtgck/actions-netlify@v1 diff --git a/.github/workflows/website-preview.yml b/.github/workflows/website-preview.yml index f6fcbff..d6946b3 100644 --- a/.github/workflows/website-preview.yml +++ b/.github/workflows/website-preview.yml @@ -15,11 +15,8 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - name: Setup Node Environment - uses: ./.github/actions/setup-node - - name: Build Docs - run: yarn docs:build + uses: ./.github/actions/build-docs - name: Get Deploy Name run: |