[+] Create deploy script

https://cli.vuejs.org/guide/deployment.html#github-pages
This commit is contained in:
Hykilpikonna
2019-09-23 19:58:02 -04:00
parent 0b41f8ac5d
commit df85e1084f
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# 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'
# if you are deploying to https://<USERNAME>.github.io/<REPO>
git push -f git@github.com:HyDevelop/VeracrossAnalyzer.Client.git master:gh-pages
cd -