Skip to content

Commit

Permalink
ci: add Next.js cache step
Browse files Browse the repository at this point in the history
  • Loading branch information
a01sa01to committed Feb 19, 2024
1 parent 38742da commit b143cf5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ jobs:
cache: yarn
- name: Setup Pages
uses: actions/configure-pages@v4
with:
static_site_generator: next
- name: Restore Next.js cache
uses: actions/cache@v4
with:
path: |
.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
- name: Install deps
run: yarn install
- name: Update data
Expand Down

0 comments on commit b143cf5

Please sign in to comment.