Skip to content

Commit 62e2a95

Browse files
committed
trying cache dependency path property
1 parent 8bbe72e commit 62e2a95

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/6-jekyll-gh-pages.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,20 @@ jobs:
2525
deploy:
2626
name: Deploy to GitHub Pages
2727
runs-on: ubuntu-latest
28-
working-directory: ./casdk-docs
2928
steps:
3029
- uses: actions/checkout@v2
3130
- uses: actions/setup-node@v3
3231
with:
3332
node-version: 18
3433
cache: yarn
34+
cache-dependency-path: ./casdk-docs/yarn.lock
3535

3636
- name: Install dependencies
3737
run: yarn install --frozen-lockfile
38-
38+
working-directory: ./casdk-docs
3939
- name: Build website
4040
run: yarn build
41+
working-directory: ./casdk-docs
4142

4243
# Popular action to deploy to GitHub Pages:
4344
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
@@ -46,7 +47,7 @@ jobs:
4647
with:
4748
github_token: ${{ secrets.GITHUB_TOKEN }}
4849
# Build output to publish to the `gh-pages` branch:
49-
publish_dir: ./build
50+
publish_dir: ./casdk-docs/build
5051
# The following lines assign commit authorship to the official
5152
# GH-Actions bot for deploys to `gh-pages` branch:
5253
# https://github.com/actions/checkout/issues/13#issuecomment-724415212

0 commit comments

Comments
 (0)