Skip to content

Commit a77125b

Browse files
committed
fix: correct build path for Docusaurus deployment
- Build docs in docs/ directory - Upload artifact from docs/build - Fix 'build: Cannot open' error
1 parent f31e089 commit a77125b

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,21 @@ jobs:
2626
with:
2727
node-version: '20'
2828
cache: 'npm'
29+
cache-dependency-path: 'docs/package-lock.json'
2930

30-
- name: Install dependencies
31+
- name: Install root dependencies
3132
run: npm ci
3233

33-
- name: Build website
34-
run: npm run build
34+
- name: Build documentation
35+
run: |
36+
cd docs
37+
npm ci
38+
npm run build
3539
3640
- name: Upload artifact
3741
uses: actions/upload-pages-artifact@v3
3842
with:
39-
path: ./build
43+
path: ./docs/build
4044

4145
deploy:
4246
environment:

0 commit comments

Comments
 (0)