summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2019-01-19 21:15:25 -0800
committerNick Van Doorn <vandoorn.nick@gmail.com>2019-01-19 21:15:25 -0800
commit7bbacce30d6717228d39f787103f5b72f4eb7bfa (patch)
tree623ac2e54bd519c2ab6d16ed11fb3321fe17faf9
parent5f53ecca3b79e62703d20f8d60caf65745cbfe03 (diff)
Implement release script
-rw-r--r--scripts/release.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
new file mode 100644
index 0000000..d03a67a
--- /dev/null
+++ b/scripts/release.sh
@@ -0,0 +1,13 @@
+branchName=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
+echo $branchName
+git stash push -- src
+git checkout master
+yarn run build
+touch build/.nojekyll
+git add docs
+git commit -m "Update docs for release $1"
+git tag $1
+git push origin master
+git checkout $branchName
+git stash pop
+