From 96a64ef824d2d0816fcba18ff34cd6b137abf50c Mon Sep 17 00:00:00 2001 From: Matthias Van Parijs Date: Sat, 19 Oct 2024 16:59:03 +0200 Subject: [PATCH] chore: Add vitepress deploy job --- .github/workflows/deploy-docs.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index e2319e1c..b3958cc1 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -20,6 +20,9 @@ concurrency: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./docs steps: - name: Checkout uses: actions/checkout@v4 @@ -35,16 +38,12 @@ jobs: uses: actions/configure-pages@v4 - name: Install dependencies run: pnpm install - with: - working-directory: ./docs - name: Build with VitePress run: pnpm build - with: - working-directory: ./docs - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: ./docs.vitepress/dist + path: ./.vitepress/dist deploy: environment: name: github-pages