Skip to content

Commit d2eaa6f

Browse files
committed
chore: Simplified deploy job for docs
1 parent 6d5175e commit d2eaa6f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,25 @@ concurrency:
2020
jobs:
2121
build:
2222
runs-on: ubuntu-latest
23+
defaults:
24+
run:
25+
working-directory: "docs"
2326
steps:
2427
- name: Checkout
2528
uses: actions/checkout@v4
2629
with:
2730
fetch-depth: 0
2831
- name: Setup node
2932
uses: actions/setup-node@v4
30-
working-directory: ./docs
3133
with:
3234
node-version: 20
3335
cache: npm
36+
cache-dependency-path: "**/package-lock.json"
3437
- name: Setup Pages
3538
uses: actions/configure-pages@v4
3639
- name: Install dependencies
37-
working-directory: ./docs
3840
run: npm ci
3941
- name: Build with VitePress
40-
working-directory: ./docs
4142
run: npm run build
4243
- name: Upload artifact
4344
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)