diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 68d3951..51026d6 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -28,27 +28,33 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Node uses: actions/setup-node@v3 with: node-version-file: ".nvmrc" cache: "npm" - - name: Install - run: npm ci + - name: Build - run: npm run build + run: | + npm ci + npm run build + - name: Deploy to gh-pages branch run: | git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git npx gh-pages -d build -u "github-actions-bot " env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Setup Pages uses: actions/configure-pages@v3 + - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: - path: "build" + path: "out" + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2 diff --git a/.nvmrc b/.nvmrc index c946e1d..b714151 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20.9.0 \ No newline at end of file +v18.18.0 \ No newline at end of file diff --git a/next.config.js b/next.config.js index 4678774..670fddb 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,10 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + output: "export", + reactStrictMode: true, + images: { + unoptimized: true, + }, +}; export default nextConfig; diff --git a/package.json b/package.json index 887849b..a6c45c2 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "dev": "next dev", "deploy": "gh-pages -d build --cname kajgm.com", "build": "next build", + "export": "next export", "start": "next start", "lint": "next lint", "test": "jest", diff --git a/public/.nojekyll b/src/public/.nojekyll similarity index 100% rename from public/.nojekyll rename to src/public/.nojekyll diff --git a/public/CNAME b/src/public/CNAME similarity index 100% rename from public/CNAME rename to src/public/CNAME diff --git a/public/robots.txt b/src/public/robots.txt similarity index 100% rename from public/robots.txt rename to src/public/robots.txt