From 566ea6486396958511addb72459c47afb5f2b73e Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Tue, 7 Dec 2021 23:52:39 -0500 Subject: [PATCH] [+] Deploy script for notes --- deploy-notes.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 deploy-notes.sh diff --git a/deploy-notes.sh b/deploy-notes.sh new file mode 100644 index 0000000..d61837b --- /dev/null +++ b/deploy-notes.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env sh + +# abort on errors +set -e + +# navigate into the build output directory +cd notes + +# if you are deploying to a custom domain +echo 'c110-notes.hydev.org' > CNAME + +git init +git add -A +git commit -m 'deploy' + +# if you are deploying to https://.github.io/ +git push -f git@github.com:Hykilpikonna/CSC110.git master:gh-pages + +cd -