diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index 245458c0cb..df78baa4ac 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -39,6 +39,12 @@ jobs: run: npm install working-directory: web-chat - - name: Deploy web chat app on gh pages - run: npm run deploy + - name: build web app + run: npm run build working-directory: web-chat + + - name: Deploy web chat app on gh pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./web-chat/build diff --git a/web-chat/package.json b/web-chat/package.json index 7a0e1966f7..11910836d1 100644 --- a/web-chat/package.json +++ b/web-chat/package.json @@ -2,7 +2,7 @@ "name": "web-chat", "version": "0.1.0", "private": true, - "homepage": "https://status-im.github.io/js-waku", + "homepage": "/js-waku", "dependencies": { "@material-ui/core": "^4.11.3", "@testing-library/jest-dom": "^5.11.10", @@ -33,9 +33,8 @@ "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.{ts,tsx},public/**/*.html}\"", "fix:prettier": "prettier \"src/**/*.{ts,tsx}\" --write", "fix:lint": "eslint src --ext .ts --ext .tsx --fix", - "js-waku:install": "cd ../; npm install", "js-waku:build": "cd ../; npm run build", - "predeploy": "run-s js-waku:* build", + "predeploy": "run-s js-waku:build build", "deploy": "gh-pages -d build" }, "eslintConfig": { diff --git a/web-chat/public/index.html b/web-chat/public/index.html index 59e7d9cae6..a620c9fec6 100644 --- a/web-chat/public/index.html +++ b/web-chat/public/index.html @@ -7,7 +7,7 @@ -