From 4d00202da8dfbd7e2b73dec4df276498fa72e08d Mon Sep 17 00:00:00 2001 From: Prakash Chokalingam Date: Thu, 21 Nov 2024 11:35:12 +0530 Subject: [PATCH] Move to webcored.github.io repository --- .github/workflows/deploy.yml | 29 +++++------------------------ next.config.mjs | 1 - 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f0013e5..a433ab1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,29 +9,13 @@ permissions: contents: write pages: write id-token: write - actions: write - deployments: write - pull-requests: write - statuses: write - checks: write jobs: - build: + build-and-deploy: runs-on: ubuntu-latest - permissions: - contents: write - pages: write - id-token: write - actions: write - deployments: write - pull-requests: write - statuses: write - checks: write steps: - name: Checkout uses: actions/checkout@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - name: Setup Node uses: actions/setup-node@v4 @@ -45,11 +29,8 @@ jobs: - name: Build with Next.js run: npm run build - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./out - user_name: 'github-actions[bot]' - user_email: 'github-actions[bot]@users.noreply.github.com' - commit_message: 'Deploy to GitHub Pages' + folder: out + branch: gh-pages diff --git a/next.config.mjs b/next.config.mjs index 9bfe358..05c1535 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,7 +1,6 @@ /** @type {import('next').NextConfig} */ const nextConfig = { output: 'export', - basePath: '/webcored', images: { unoptimized: true, },