diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 3ae9ac0..e22d518 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -55,12 +55,12 @@ jobs: cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages uses: actions/configure-pages@v5 - with: + # 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 + # static_site_generator: next - name: Restore cache uses: actions/cache@v4 with: @@ -74,25 +74,20 @@ jobs: - name: Install dependencies 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 + run: echo "var - ${{ vars.NEXT_PUBLIC_SITE_URL }} ${{env}}, ${{vars}}, $NEXT_PUBLIC_SITE_URL" && ${{ steps.detect-package-manager.outputs.runner }} next build - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - name: nextjs-build - path: ./out + path: ./.next + # Deployment job deploy: - runs-on: ubuntu-latest - needs: build environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./out - # Specify the branch to deploy from - publish_branch: main # Adjust this to your desired branch