From 6bd54791e1c42bcb5e072eb1dea6607a7c9c907e Mon Sep 17 00:00:00 2001 From: "Oleksandr B." Date: Thu, 16 May 2024 12:05:21 +0300 Subject: [PATCH] Update config --- .github/workflows/nextjs.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 3ae9ac0..da83b9c 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: @@ -78,21 +78,16 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - name: nextjs-build path: ./out + # 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