diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..24f4165 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,32 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - main # Trigger the action on pushes to the 'main' branch (adjust if your default branch is different) + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' # Use the node version you're working with + + - name: Install dependencies + run: npm install + + - name: Build static site + run: npm run build && npm run export + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./out # This is the default export directory for Next.js static exports + # You can specify a 'cname' if you're using a custom domain diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..7b01368 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20.17 \ No newline at end of file diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000..d187716 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,7 @@ +module.exports = { + semi: false, + trailingComma: 'all', + singleQuote: true, + printWidth: 120, + tabWidth: 2, +} diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..ad4f19a --- /dev/null +++ b/next.config.js @@ -0,0 +1,3 @@ +module.exports = { + output: 'export', +}