forked from api3dao/old-api3-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
29 lines (21 loc) · 793 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
#!/usr/bin/env sh
# abort on errors
set -e
# build the docs
npm run docs:build
# navigate to the build output directory
cd docs/.vuepress/dist
# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME
# api3dao/api3-doc uses the main branch as default.
# git init must start with a main branch so gh-pages will
# "hang" off of it.
git init --initial-branch=main
git add -A
git commit -m 'Deploying a locally built /dist folder to main:gh-pages as its own commit history.'
# if you are deploying to https://<USERNAME>.github.io
# git push -f [email protected]:<USERNAME>/<USERNAME>.github.io.git main
# If you are deploying to https://<USERNAME>.github.io/<REPO>
# NEVER push to main, use main:gh-pages.
git push -f [email protected]:api3dao/api3-docs.git main:gh-pages
cd -