From 0586f4d36645e6586282ef2fe536682fead770d6 Mon Sep 17 00:00:00 2001 From: Rakantor Date: Sun, 10 Apr 2022 16:30:52 +0200 Subject: [PATCH] add gh-pages deploy script --- gh-pages-deploy.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 gh-pages-deploy.sh 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