From aef0eedc0c3d5a2ccecee3ea43b97fdb0dfc9f27 Mon Sep 17 00:00:00 2001 From: Bugo Date: Thu, 12 Dec 2024 00:31:08 +0500 Subject: [PATCH] Update docs.yml --- .github/workflows/docs.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8ed90fd..f9ab6c8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -48,17 +48,16 @@ jobs: path: | .next/cache # Generate a new cache whenever packages or source files change. - key: ${{ runner.os }}-nextjs-${{ hashFiles('**/docs/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} + key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} # If source files changed but packages didn't, rebuild from a prior cache. restore-keys: | - ${{ runner.os }}-nextjs-${{ hashFiles('**/docs/pnpm-lock.yaml') }}- + ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}- - name: Install dependencies - run: | - cd docs - pnpm install + working-directory: docs + run: pnpm install - name: Build site with Next.js + working-directory: docs run: | - cd docs pnpm build touch out/.nojekyll - name: Upload artifact