From b30da3c5294e45e16334e17b31f4fed45738eee7 Mon Sep 17 00:00:00 2001 From: viarotel Date: Sun, 19 Nov 2023 18:11:09 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E2=99=BB=EF=B8=8F=20Update=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release-pages.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-pages.yml b/.github/workflows/release-pages.yml index 02552be..d18c406 100644 --- a/.github/workflows/release-pages.yml +++ b/.github/workflows/release-pages.yml @@ -9,9 +9,8 @@ permissions: contents: write jobs: - build-and-deploy: - concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. - runs-on: ubuntu-latest + build: + runs-on: windows-latest steps: - name: Checkout 🛎️ uses: actions/checkout@v3 @@ -28,12 +27,17 @@ jobs: run_install: | args: [] - - 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. + deploy: + concurrency: ci-${{ github.ref }} + needs: [build] + runs-on: ubuntu-latest + steps: + - name: Install and Build 🔧 run: | pnpm install pnpm build - - name: Deploy 🚀 + - name: Deploy pages 🚀 uses: JamesIves/github-pages-deploy-action@v4 with: branch: docs