From 044b3c5e47c695208745fcb63cac16d9d158eb22 Mon Sep 17 00:00:00 2001 From: Mauro Druwel <46003176+MauroDruwel@users.noreply.github.com> Date: Sun, 28 Jan 2024 22:35:02 +0100 Subject: [PATCH 1/2] Create deploy_github_pages.yml --- .github/workflows/deploy_github_pages.yml | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/deploy_github_pages.yml diff --git a/.github/workflows/deploy_github_pages.yml b/.github/workflows/deploy_github_pages.yml new file mode 100644 index 00000000000..d787eacb17d --- /dev/null +++ b/.github/workflows/deploy_github_pages.yml @@ -0,0 +1,35 @@ +name: Build and Deploy to GitHub Pages + +on: + push: + branches: + - main + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install Dependencies + run: yarn install + + - name: Build Project + run: yarn build + + - name: Export Project + run: yarn export + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/main' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./out From c3a9901fe4093ea3475cb2c7e0f243f3d6e4cf3f Mon Sep 17 00:00:00 2001 From: Mauro Druwel <46003176+MauroDruwel@users.noreply.github.com> Date: Sun, 28 Jan 2024 22:45:58 +0100 Subject: [PATCH 2/2] Update package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index f28a5a6ecf2..fc61e3e69dd 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "chatgpt-next-web", "private": false, "license": "mit", + "homepage": "https://nextchat.maurodruwel.tech", "scripts": { "dev": "next dev", "build": "cross-env BUILD_MODE=standalone next build",