File tree Expand file tree Collapse file tree 5 files changed +16
-144
lines changed Expand file tree Collapse file tree 5 files changed +16
-144
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ VERSION=" $( cat ./package.json | python -c " import sys, json; print(json.load(sys.stdin)['version'])" ) "
3+ git diff --exit-code
4+
5+ if [[ $? == 0 ]]
6+ then
7+ sed -i ' \:/examples/dist:d' ./.gitignore
8+ git add .
9+ git commit -m " Publish v${VERSION} examples"
10+ git push origin ` git subtree split --prefix examples/dist master` :gh-pages --force
11+ git reset HEAD~
12+ git checkout .gitignore
13+ else
14+ echo " Need clean working directory to publish"
15+ fi
Original file line number Diff line number Diff line change 2121 "scripts" : {
2222 "build" : " gulp build-no-css-compare" ,
2323 "examples" : " gulp examples" ,
24- "gh-build" : " gulp build-gh-pages" ,
25- "gh-deploy" : " npm run gh-build && git subtree push --prefix examples/dist origin gh-pages" ,
24+ "gh-deploy" : " gulp build-gh-pages && bash ./gh-deploy.sh" ,
2625 "prepublishOnly" : " gulp build" ,
2726 "test" : " gulp test-script"
2827 },
You can’t perform that action at this time.
0 commit comments