From f5ce9884bd2da9f187fed33c6ae5f98534be542e Mon Sep 17 00:00:00 2001 From: Sean Marcia Date: Thu, 5 Dec 2024 22:33:04 -0500 Subject: [PATCH] second --- .github/workflows/deploy.yml | 27 +++++++++++++++++++++++++++ next.config.js | 9 +++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/deploy.yml create mode 100644 next.config.js diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..301fee1 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,27 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: ["main"] + +permissions: + contents: write + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: out + branch: gh-pages +L diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..3bc31bc --- /dev/null +++ b/next.config.js @@ -0,0 +1,9 @@ +const nextConfig = { + output: 'export', + basePath: '/your-repo-name', + images: { + unoptimized: true + } +} + +module.exports = nextConfig