From a8c11a8e25ef5119d2dedd871c3ad3c521b77c53 Mon Sep 17 00:00:00 2001 From: Bugo Date: Wed, 11 Dec 2024 20:55:40 +0500 Subject: [PATCH] Update docs.yml --- .github/workflows/docs.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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: