Skip to content

Commit 2829844

Browse files
author
Diego Jara
committed
update deploy script
1 parent 394ba3a commit 2829844

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bin/deploy-doc.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
git stash save 'Before deploy' # Stash all changes before deploy
44
git checkout master
5-
npm run build
6-
cp dist/vue-avatar.min.js gh-pages/
7-
git add gh-pages/vue-avatar.min.js
5+
yarn docs
86
git commit -m "Deploy docs"
97
RESULT=$?
108
if [ $RESULT -eq 0 ]; then
119
echo ' >> Changes Committed << '
1210
fi
13-
git subtree push --prefix gh-pages origin gh-pages # Deploy gh-pages
11+
git subtree push --prefix docs origin gh-pages # Deploy gh-pages
1412
git push origin master
1513
git stash pop # And restore the changes
1614
echo ' >> Deployed << '

0 commit comments

Comments
 (0)