From b143cf5bfd409dc3dd644abbc25041ef1d5d121d Mon Sep 17 00:00:00 2001 From: Asa <26807394+a01sa01to@users.noreply.github.com> Date: Mon, 19 Feb 2024 22:51:22 +0900 Subject: [PATCH] ci: add Next.js cache step --- .github/workflows/deploy.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 04a0f19..27aa213 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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