Skip to content

Commit

Permalink
fix(gh build): fix gh build public path error
Browse files Browse the repository at this point in the history
  • Loading branch information
innocces committed Sep 6, 2021
1 parent 86cf4af commit 54375c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- run: npm i -g yarn
- run: npm i -g lerna
- run: yarn bootstrap
- run: yarn docs:build
- run: yarn docs:build:gh
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .umirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default defineConfig({
favicon: '/image/hook.png',
logo: '/image/logo.png',
outputPath: 'docs-dist',
...(process.env.BUILD_TARGET === 'GH' ? { publicPath: '/taro-hooks/' } : {}),
mode: 'site',
devServer: {
host: '0.0.0.0',
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"start": "dumi dev",
"docs:build": "dumi build",
"docs:build:gh": "cross-env BUILD_TARGET=GH dumi build",
"docs:deploy": "gh-pages -d docs-dist",
"app:dev": "cd ./packages/app && npm run dev:weapp",
"app:dev:h5": "cd ./packages/app && npm run dev:h5",
Expand Down Expand Up @@ -70,6 +71,7 @@
"babel-preset-taro": "^3.2.13",
"commitizen": "^4.2.4",
"conventional-changelog-cli": "^2.1.1",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"dumi": "^1.1.19",
"dumi-theme-mobile": "^1.1.3",
Expand Down

2 comments on commit 54375c5

@vercel
Copy link

@vercel vercel bot commented on 54375c5 Sep 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

taro-hooks – ./

taro-hooks-theta.vercel.app
taro-hooks-innocces.vercel.app
taro-hooks-git-main-innocces.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 54375c5 Sep 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

taro-hooks-h5 – ./

taro-hooks-h5-green.vercel.app
taro-hooks-h5-innocces.vercel.app
taro-hooks-h5-git-main-innocces.vercel.app

Please sign in to comment.