mirror of
https://github.com/KarolChang/jm-expense-vue-ts.git
synced 2024-12-26 03:38:35 +00:00
26 lines
605 B
Bash
Executable File
26 lines
605 B
Bash
Executable File
#!/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
|
|
git commit -m 'deploy: config & view'
|
|
|
|
# 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 - |