diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 224bb93..409016d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -3,12 +3,12 @@ name: GitHub Pages on: + workflow_dispatch: push: branches: [main] paths: - '.github/workflows/docs.yml' - 'docs/**' - workflow_dispatch: permissions: contents: read @@ -26,6 +26,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 2 - name: Setup Node uses: actions/setup-node@v4 @@ -57,12 +59,18 @@ jobs: pnpm install - name: Setup Pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 - name: Build with VitePress run: | cd docs pnpm run build + touch out/.nojekyll + + - name: Upload Artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./out # Deployment job deploy: