From 84f591886522bc1358f47875fd895de7f0aea991 Mon Sep 17 00:00:00 2001 From: jiaziling Date: Sat, 14 Sep 2024 18:29:57 +0800 Subject: [PATCH] chore: setting git pages deploy --- .github/workflows/deploy.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 55db5d5..d7fc722 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,7 +5,6 @@ on: branches: [dev-jzl] workflow_dispatch: -# 允许 job 克隆 repo 并创建一个 page deployment permissions: contents: read pages: write @@ -17,13 +16,23 @@ jobs: steps: - name: Checkout your repository using git uses: actions/checkout@v4 + - name: Install dependencies run: yarn + - name: Build your project run: yarn run docs:build + - name: Show build output directory run: ls -la ./docs-dist + - name: Upload build artifact + uses: actions/upload-artifact@v4 + with: + name: github-pages + path: ./docs-dist + + deploy: needs: build runs-on: ubuntu-latest @@ -34,5 +43,3 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 - with: - folder: docs-dist