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