2022-01-04 05:43:12 +00:00
|
|
|
#!/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 'www.example.com' > CNAME
|
|
|
|
|
|
|
|
git init
|
|
|
|
git add -A
|
2022-04-24 02:08:45 +00:00
|
|
|
git commit -m 'deploy: config'
|
2022-01-04 05:43:12 +00:00
|
|
|
|
|
|
|
# if you are deploying to https://<USERNAME>.github.io
|
|
|
|
# git push -f https://github.com/<USERNAME>/<USERNAME>.GitHub.io.git master
|
|
|
|
|
|
|
|
# if you are deploying to https://<USERNAME>.Github.io/<REPO>
|
|
|
|
# git push -f https://github.com/<USERNAME>/<REPO>.git master:gh-pages
|
|
|
|
git push -f https://github.com/KarolChang/jm-expense-vue-ts.git master:gh-pages
|
|
|
|
|
|
|
|
cd -
|