From c731c29c4606e48432fe3f7c7edf31f5d1dd39ae Mon Sep 17 00:00:00 2001 From: Loosetooth Date: Tue, 26 Sep 2023 23:09:07 +0200 Subject: [PATCH] fix config --- .github/workflows/nextjs.yml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 5475a71..195b98c 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -30,7 +30,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + fetch-depth: 0 + clean: false - name: Detect package manager id: detect-package-manager run: | @@ -53,14 +56,14 @@ jobs: with: node-version: "16" cache: ${{ steps.detect-package-manager.outputs.manager }} - # - name: Setup Pages - # uses: actions/configure-pages@v3 - # 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: Setup Pages + uses: actions/configure-pages@v3 + 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@v3 with: @@ -75,8 +78,10 @@ jobs: run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - name: Build with Next.js run: ${{ steps.detect-package-manager.outputs.runner }} next build - - name: Static HTML export with Next.js - run: ${{ steps.detect-package-manager.outputs.runner }} next export + - name: List folder contents + run: ls -la + # - name: Static HTML export with Next.js + # run: ${{ steps.detect-package-manager.outputs.runner }} next export - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: