forked from nsexer/blockchainweek.fr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.sh
executable file
·32 lines (23 loc) · 836 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
#!/usr/bin/env sh
# abort on errors
set -e
# build
npm run build
# navigate into the build output directory
cd .vuepress/dist
# copy the .vuepress/.github directory, which only contains files related to
# the gh-pages branch (GitHub Page)
cp -r ../.github .
# move the CNAME record into the root of the dist directory
mv .github/CNAME .
# create a 'dummy' git repository and commit all the files to later force-push
# into the gh-pages branch
git init
git add -A
git commit -m 'deploy'
# if you are deploying to https://<USERNAME>.github.io
# git push -f [email protected]:<USERNAME>/<USERNAME>.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
git push -f [email protected]:cesalazar/berlinblockchainweek.git master:gh-pages
exit 0