Browse Source

feat: script gh-pages

richard1015 4 years ago
parent
commit
677eea70b5
2 changed files with 2 additions and 1 deletions
  1. 1 1
      .github/workflows/gh-pages.yml
  2. 1 0
      package.json

+ 1 - 1
.github/workflows/gh-pages.yml

@@ -11,7 +11,7 @@ jobs:
     steps:
       - uses: actions/checkout@v2
       - run: yarn install
-      - run: yarn build:site
+      - run: yarn build:gh-pages
       - name: Deploy
         uses: peaceiris/actions-gh-pages@v3
         with:

+ 1 - 0
package.json

@@ -39,6 +39,7 @@
     "checked": "npm run generate:file && rm -rf dist/ && tsc",
     "dev": "npm run checked && vite --open",
     "build:site": "npm run checked && vite build",
+    "build:gh-pages": "npm run checked && vite build --base=/nutui/",
     "build:site:oss": "npm run checked && vite build --base=/nutui/3x/",
     "build": "npm run checked && vite build --config vite.config.build.ts && npm run generate:types",
     "build:disperse": "vite build --config vite.config.build.disperse.ts",