Skip to content

Commit a213a6c

Browse files
committed
docs: fix deploy docs job
1 parent fc1c700 commit a213a6c

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: Deploy static content to Pages
1+
name: Publish Docs
22

33
on:
44
push:
55
branches: ["main"]
66
paths:
77
- "docs/**"
8+
- ".github/workflows/deploy-docs.yml"
89
workflow_dispatch:
910

1011
permissions:
@@ -27,6 +28,9 @@ jobs:
2728
name: github-pages
2829
url: ${{ steps.deployment.outputs.page_url }}
2930
runs-on: ubuntu-latest
31+
defaults:
32+
run:
33+
working-directory: docs
3034
steps:
3135
- name: Checkout
3236
uses: actions/checkout@v4
@@ -39,19 +43,17 @@ jobs:
3943
with:
4044
node-version: lts/*
4145
cache: "pnpm"
46+
cache-dependency-path: "docs/pnpm-lock.yaml"
4247
- name: Install dependencies
4348
run: pnpm install --frozen-lockfile
44-
working-directory: docs
4549
- name: Build
4650
run: pnpm run build
47-
working-directory: docs
4851
- name: Setup Pages
4952
uses: actions/configure-pages@v5
5053
- name: Upload artifact
5154
uses: actions/upload-pages-artifact@v3
5255
with:
53-
path: "./docs/dist"
54-
working-directory: docs
56+
path: "./docs/docs/dist"
5557
- name: Deploy to GitHub Pages
5658
id: deployment
5759
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)