Skip to content

Commit

Permalink
ci(gh-pages): add gh-pages setting
Browse files Browse the repository at this point in the history
  • Loading branch information
innocces committed Aug 1, 2021
1 parent e3be214 commit 9a3d1be
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: github pages

on:
push:
branches:
- main # default branch

jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- run: npm i -g yarn
- run: npm i -g lerna
- run: yarn bootstrap
- run: yarn docs:build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs-dist
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"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",
"app:build:h5": "cd ./packages/app && npm run build:h5",
"app:build": "cd ./packages/app && npm run build:weapp",
"build": "father-build",
"deploy": "npm run docs:build && npm run docs:deploy",
Expand Down
8 changes: 3 additions & 5 deletions packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"lodash.debounce": "^4.0.8",
"lodash.throttle": "^4.1.1",
"querystring": "^0.2.1",
"react": "^17.0.2"
"react": "^17.0.2",
"compressorjs": "^1.0.7"
},
"peerDependencies": {
"@tarojs/taro": ">= 3.x",
Expand All @@ -49,8 +50,5 @@
"engines": {
"node": ">=12.0.0"
},
"license": "MIT",
"devDependencies": {
"compressorjs": "^1.0.7"
}
"license": "MIT"
}
1 change: 1 addition & 0 deletions packages/taro-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"rollup": "^2.53.3",
"rollup-plugin-buble": "^0.19.8",
"rollup-plugin-typescript2": "^0.30.0",
"taro-ui": "^2.3.4",
"vue": "^2.6.14"
}
}

1 comment on commit 9a3d1be

@vercel
Copy link

@vercel vercel bot commented on 9a3d1be Aug 1, 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.vercel.app
taro-hooks-git-main-ff-docs.vercel.app
taro-hooks-ff-docs.vercel.app

Please sign in to comment.