diff --git a/.github/workflows/ghpage.yml b/.github/workflows/ghpage.yml new file mode 100644 index 0000000..813bb61 --- /dev/null +++ b/.github/workflows/ghpage.yml @@ -0,0 +1,38 @@ +name: Frontend deploy + +on: + push: + branches: + - main # The branch the action should deploy from. +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v2.3.1 + + - name: Use Node.js 16.x + uses: actions/setup-node@v1 + with: + node-version: '16.x' + + - uses: pnpm/action-setup@v2 + name: Install pnpm + id: pnpm-install + with: + version: 8 + run_install: false + + - name: Install dependencies + run: pnpm install + + - name: Build my App + run: pnpm run build + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4.4.1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages # The branch the action should deploy to. + FOLDER: apps/web/out # The folder the action should deploy. \ No newline at end of file diff --git a/apps/web/next.config.js b/apps/web/next.config.js index da1bb77..7924777 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -1,3 +1,4 @@ module.exports = { + output: 'export', reactStrictMode: true, };