Skip to content

Commit f84e375

Browse files
committed
Fix working dir
1 parent fb3702b commit f84e375

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/rspress.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
# Build job
3434
build:
3535
runs-on: ubuntu-latest
36+
defaults:
37+
run:
38+
working-directory: ./docs
3639
steps:
3740
- name: Checkout
3841
uses: actions/checkout@v4
@@ -74,17 +77,15 @@ jobs:
7477
restore-keys: |
7578
${{ runner.os }}-rspress-build-
7679
- name: Install dependencies
77-
working-directory: ./docs
7880
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
7981
- name: Build with Rspress
80-
working-directory: ./docs
8182
env:
8283
PREFIX_PATHS: 'true'
8384
run: ${{ steps.detect-package-manager.outputs.manager }} run build
8485
- name: Upload artifact
8586
uses: actions/upload-pages-artifact@v3
8687
with:
87-
path: ./docs/doc_build
88+
path: ./doc_build
8889

8990
# Deployment job
9091
deploy:

0 commit comments

Comments
 (0)