Skip to content

Commit

Permalink
Update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tsung-ju committed Jul 19, 2021
1 parent e937a7d commit afd038b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'npm'
- name: NPM Cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- name: Gatsby Cache
uses: actions/cache@v2
with:
Expand All @@ -27,9 +32,9 @@ jobs:
npm run build
- name: Build Docs
run: |
cd docs
npm install
npm run build
working-directory: docs
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit afd038b

Please sign in to comment.