From e0da0c511ae4e979a92d79fcfd8ef907bfedba2a Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Mon, 26 Dec 2022 10:31:09 -0500 Subject: [PATCH] Updating publishing logic. --- publish.sh | 14 ++++++++++++++ version.txt | 1 + 2 files changed, 15 insertions(+) create mode 100755 publish.sh create mode 100644 version.txt diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..bf09aa2 --- /dev/null +++ b/publish.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -exu +cd "$(dirname "$0")" + +# this script will tag the repo then push it to origin +TAG_NAME="$(head -n 1 ./version.txt)" +TAG_MESSAGE="Creating tag $TAG_NAME on $(date)." + +git tag -a "$TAG_NAME" -m "$TAG_MESSAGE" -s + +# optional; push to remote +git push --all +git push --tags diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..cce2b1f --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +v0.0.22 \ No newline at end of file