From 35ad853348d5a8f052963572b0f30778b3dca5f7 Mon Sep 17 00:00:00 2001 From: linyows Date: Thu, 25 Jan 2024 11:27:50 +0900 Subject: [PATCH] update github workflow --- .github/workflows/pages.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 6b48ec13..dcd1c8a0 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -30,15 +30,16 @@ jobs: with: static_site_generator: next - name: Restore next cache - working-directory: examples/nextjs - uses: actions/cache@v3 + uses: actions/cache@v4.0.0 with: - path: .next/cache - key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} - restore-keys: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- + path: | + .next/cache + key: | + ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} + restore-keys: | + ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- - name: Restore rotion cache - working-directory: examples/nextjs - uses: actions/cache@v3 + uses: actions/cache@v4.0.0 with: path: | .cache @@ -53,7 +54,6 @@ jobs: run: | npm run build - name: Upload artifact - working-directory: examples/nextjs uses: actions/upload-pages-artifact@v1 with: path: ./out