Skip to content

Commit

Permalink
sync to github
Browse files Browse the repository at this point in the history
  • Loading branch information
知春 committed Nov 25, 2016
1 parent 736ae93 commit 4381c4d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@
"test": "npm run lint && npm run unit",
"authors": "git log --format='%aN <%aE>' | sort -u > AUTHORS.txt",
"start": "webpack-dev-server --config build/webconfig.config.js --host 0.0.0.0 & bisheng start -c ./site/bisheng.config.js",
"site": "bisheng build -c ./site/bisheng.config.js && sh post-site.sh",
"site": "bisheng build -c ./site/bisheng.config.js && sh post-site.sh && sh sync_doc.sh",
"sync": "sh sync.sh",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -w -r 0"
},
"publishConfig": {
Expand Down
3 changes: 2 additions & 1 deletion sync.sh
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
echo sync
echo 'beginning sync file to github'
git push --no-verify --mirror "https://github.com/aliqin/atui.git"
14 changes: 14 additions & 0 deletions sync_doc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
tempdir=`mktemp -d -t atui.XXXXXX`
workDir=$PWD
tempContent=$tempdir"/*"
git clone https://github.com/aliqin/aliqin.github.io.git $tempdir

cd $tempdir && rm -rf $tempContent
cd $workDir
cp -r ./_site/* $tempdir
cd $tempdir
git add -A
git commit -m 'doc update'
git push origin master
rm -rf tempdir

0 comments on commit 4381c4d

Please sign in to comment.