forked from KomodoPlatform/Documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·28 lines (20 loc) · 734 Bytes
/
deploy.sh
File metadata and controls
executable file
·28 lines (20 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env sh
# abort on errors
set -e
# build
yarn docs:build
# navigate into the build output directory
cd docs/.vuepress/dist
# if you are deploying to a custom domain
#echo 'developers.komodoplatform.com' > CNAME
git init
git add -A
git commit -m 'deploy'
# if you are deploying to https://<USERNAME>.github.io
GIT_USER=$(git config --global user.name)
#git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
# if you are deploying to https://<USERNAME>.github.io/<REPO>
git push -f git@github.com:$GIT_USER/$GIT_USER.github.io.git master
#git push -f git@github.com:siddhartha-komodo/developer-docs.git master:gh-pages
#git push -f git@github.com:komodoplatform/developer-docs.git master:gh-pages
cd -