diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..ad3b247 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,29 @@ +name: deploy + +on: + push: + branches: [main] + workflow_dispatch: + +jobs: + deploy: + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - run: yarn install + - run: yarn build + env: + NODE_ENV: production + + - uses: actions/upload-pages-artifact@v2 + with: + path: "out" diff --git a/next.config.js b/next.config.js index 767719f..a35bfad 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,6 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {} +const nextConfig = { + output: "export", +}; -module.exports = nextConfig +module.exports = nextConfig;