forked from crypto-org-chain/cronos-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.sh
executable file
·36 lines (25 loc) · 825 Bytes
/
deploy.sh
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
29
30
31
32
33
34
35
36
#!/usr/bin/env sh
# abort on errors
set -e
# build
npm run docs:build
# build full doc pdf
cd docs/
# hack for hide navbar when exporting PDF
sed -i '' -e "/navbar/s/true/false/" ./.vuepress/config.js
vuepress export
# restore navbar true and mv to dist
sed -i '' -e "/navbar/s/false/true/" ./.vuepress/config.js
mv 'Crypto.com Chain.pdf' ./.vuepress/dist/Crypto.com_Chain.pdf
# navigate into the build output directory
cd .vuepress/dist
# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME
git init
git add -A
git commit -m 'deploy'
# if you are deploying to https://<USERNAME>.github.io
git push -f [email protected]:crypto-com/crypto-com.github.io.git master
# if you are deploying to https://<USERNAME>.github.io/<REPO>
#git push -f [email protected]:<USERNAME>/<REPO>.git master:gh-pages
cd -