Skip to content

Commit b82edf4

Browse files
author
anh.nguyen
committed
add cache-dependency
1 parent 7ee03b6 commit b82edf4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/static-build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and Deploy Static Pages
33
on:
44
push:
55
branches:
6-
- main # or your default branch
6+
- main
77

88
jobs:
99
build-and-deploy:
@@ -17,11 +17,14 @@ jobs:
1717
with:
1818
node-version: '18'
1919
cache: 'npm'
20+
cache-dependency-path: './frontend/package-lock.json'
2021

2122
- name: Install dependencies
23+
working-directory: ./frontend
2224
run: npm ci
2325

2426
- name: Build static pages
27+
working-directory: ./frontend
2528
run: npm run build
2629

2730
- name: Checkout target repository
@@ -33,7 +36,7 @@ jobs:
3336

3437
- name: Copy built files and create PR
3538
run: |
36-
cp -r out/* robocus.github.io/docs/
39+
cp -r frontend/out/* robocus.github.io/docs/
3740
# Create CNAME file
3841
echo "robocus.org" > robocus.github.io/docs/CNAME
3942
# Create empty .nojekyll file

0 commit comments

Comments
 (0)