diff --git a/gh-pages-deploy.sh b/gh-pages-deploy.sh new file mode 100644 index 0000000..9b21154 --- /dev/null +++ b/gh-pages-deploy.sh @@ -0,0 +1,25 @@ +#!/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 'mave.dev' > CNAME + +git init +git add -A +git commit -m 'deploy' + +# if you are deploying to https://.github.io +# git push -f git@github.com:/.github.io.git main + +# if you are deploying to https://.github.io/ +git push -f https://github.com/Rakantor/personal-portfolio.git master:gh-pages + +cd - \ No newline at end of file