diff --git a/.github/workflows/autoDeployPages.yml b/.github/workflows/autoDeployPages.yml index 9e33915..c494d5c 100644 --- a/.github/workflows/autoDeployPages.yml +++ b/.github/workflows/autoDeployPages.yml @@ -1,14 +1,19 @@ -name: CI +name: Deploy gh-pages on: push: branches: - master +permissions: + contents: write +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build-and-deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Build + - name: Install & Build uses: actions/setup-node@v3 with: node-version: "18.x" @@ -16,7 +21,7 @@ jobs: - run: npm install - run: npm run build - name: Deploy # 部署 - uses: JamesIves/github-pages-deploy-action@v4.3.3 + uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages # 部署后提交到那个分支 folder: dist # 这里填打包好的目录名称 diff --git a/index.html b/index.html index e0bbeaa..a02393d 100644 --- a/index.html +++ b/index.html @@ -2,9 +2,9 @@ - + - Vite + React + TS + GOST API Manage
diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..8264acf Binary files /dev/null and b/public/favicon.ico differ diff --git a/src/Pages/Home.tsx b/src/Pages/Home.tsx index 0f2f840..bde1740 100644 --- a/src/Pages/Home.tsx +++ b/src/Pages/Home.tsx @@ -43,7 +43,7 @@ const Home: React.FC = () => { columns={columns} > */} { placeholder={"password"} /> -
- - - - - - -
服务器操作
-
); }; diff --git a/vite.config.ts b/vite.config.ts index 5a33944..f8980cd 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,8 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; // https://vitejs.dev/config/ export default defineConfig({ + base: "./", plugins: [react()], -}) +});