-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdeploy.sh
More file actions
26 lines (16 loc) · 541 Bytes
/
deploy.sh
File metadata and controls
26 lines (16 loc) · 541 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
#!/usr/bin/env sh
# abort on errors
set -e
# build
npm run build
# navigate into the build output directory
cd dist/
# if you are deploying to a custom domain
echo 'iro.nyan.my.id' > CNAME
cd -
git add dist/ -f
git commit -m 'deployer(gh-pages): deploy to github pages'
# if you are deploying to https://<USERNAME>.github.io
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
# if you are deploying to https://<USERNAME>.github.io/<REPO>
git push origin `git subtree split --prefix dist next`:gh-pages --force