Skip to content

Commit

Permalink
build: Automate docs deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rkunev committed Jun 20, 2019
1 parent 2d67014 commit dade5c6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions scripts/deploy-docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env sh

# abort on errors
set -e

yarn docs:build
cd docs/.vuepress/dist

git init
git add -A

author=$1

if [[ -n "$author" ]]; then
git config user.email "$author"
fi

git commit -m 'deploy'

git push -f git@github.com:radial-color-picker/vue-color-picker.git master:gh-pages

cd -

0 comments on commit dade5c6

Please sign in to comment.