diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 49a1273..0e38565 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -23,6 +23,9 @@ jobs: # Build job build: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./docs steps: - name: Checkout uses: actions/checkout@v4 @@ -37,10 +40,6 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v4 with: - # Automatically inject basePath in your Next.js configuration file and disable - # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). - # - # You may remove this line if you want to manage the configuration yourself. static_site_generator: next - name: Restore cache uses: actions/cache@v4 @@ -53,10 +52,8 @@ jobs: restore-keys: | ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}- - name: Install dependencies - working-directory: docs - run: pnpm install --no-frozen-lockfile + run: pnpm install - name: Build site with Next.js - working-directory: docs run: | pnpm build touch out/.nojekyll