diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..95264f8 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,18 @@ +# .github/workflows/deploy.yml +name: Deploy Main +on: + push: + branches: + - main +jobs: + deploy-preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: npm i && npm run build + - uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: ./out + branch: gh-pages + clean-exclude: pr-preview + force: false diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 0000000..da7e159 --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,24 @@ +# .github/workflows/preview.yml +name: Deploy PR previews +concurrency: preview-${{ github.ref }} +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed +jobs: + deploy-preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: npm i && npm run build + if: github.event.action != 'closed' + - uses: rossjrw/pr-preview-action@v1 + with: + source-dir: . + preview-branch: gh-pages + umbrella-dir: pr-preview + action: auto + \ No newline at end of file diff --git a/.github/workflows/setup-node/action.yml b/.github/workflows/setup-node/action.yml new file mode 100644 index 0000000..47d3e91 --- /dev/null +++ b/.github/workflows/setup-node/action.yml @@ -0,0 +1,22 @@ +# File: .github/workflows/setup-node/action.yml +name: setup-node +description: "Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧" +runs: + using: "composite" + steps: + - name: Setup Node.js ⚙️ + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Cache dependencies ⚡ + id: cache_dependencies + uses: actions/cache@v3 + with: + path: node_modules + key: node-modules-${{ hashFiles('package-lock.json') }} + + - name: Install dependencies 🔧 + shell: bash + if: steps.cache_dependencies.outputs.cache-hit != 'true' + run: npm ci \ No newline at end of file diff --git a/.gitignore b/.gitignore index fd3dbb5..341eba7 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,6 @@ # next.js /.next/ -/out/ # production /build diff --git a/next.config.mjs b/next.config.mjs index 4678774..c98d922 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,8 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + basePath: '/soe-centennial', + output: 'export', + reactStrictMode: true, +}; export default nextConfig; diff --git a/out/404.html b/out/404.html new file mode 100644 index 0000000..77d6d1b --- /dev/null +++ b/out/404.html @@ -0,0 +1 @@ +
e||125SOE Centennial