From a414b11651f2a51eef6b05dc8d8c51ece53f70d4 Mon Sep 17 00:00:00 2001 From: xhyrom Date: Wed, 22 Dec 2021 19:05:07 +0100 Subject: [PATCH] page fix --- .github/workflows/pages.yml | 8 +++++++- package.json | 3 +-- src/web-old/index.html | 36 ------------------------------------ src/web/package.json | 3 ++- src/web/pages/index.tsx | 16 +++++++++------- 5 files changed, 19 insertions(+), 47 deletions(-) delete mode 100644 src/web-old/index.html diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 1934a6c..c795013 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -12,8 +12,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm ci + - run: cd src/web && npm run ghbuild + - name: Deploy site uses: JamesIves/github-pages-deploy-action@4.1.4 with: branch: gh-pages - folder: src/web-old \ No newline at end of file + folder: src/web/out \ No newline at end of file diff --git a/package.json b/package.json index f74e718..8f89189 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,7 @@ "main": "dist/worker.production.js", "scripts": { "build": "webpack ./src/bot", - "dev": "cross-env NODE_ENV=development npm run build", - "transpile": "tsc --project ./test" + "dev": "cross-env NODE_ENV=development npm run build" }, "keywords": [], "author": "", diff --git a/src/web-old/index.html b/src/web-old/index.html deleted file mode 100644 index bac72a3..0000000 --- a/src/web-old/index.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - Roles Bot - - - - - - - - - - - -
-
-

Generate

-
-
- -
- - - - -
-
-
- - - - \ No newline at end of file diff --git a/src/web/package.json b/src/web/package.json index 92f292c..244459e 100644 --- a/src/web/package.json +++ b/src/web/package.json @@ -5,7 +5,8 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "ghbuild": "next build && next export" }, "dependencies": { "next": "12.0.7", diff --git a/src/web/pages/index.tsx b/src/web/pages/index.tsx index f690560..4fb17a3 100644 --- a/src/web/pages/index.tsx +++ b/src/web/pages/index.tsx @@ -1,9 +1,12 @@ import Head from "next/head"; +import Script from "next/script"; export default function Home() { return (
+ Roles Bot +
@@ -15,17 +18,16 @@ export default function Home() { -
- - - - - - + + + + + + ) } \ No newline at end of file