Updating publishing logic.

This commit is contained in:
Derek Smith 2022-12-26 10:31:09 -05:00
parent 3bc86d8aa3
commit e0da0c511a
Signed by: farscapian
GPG Key ID: 8F1CD799CCA516CC
2 changed files with 15 additions and 0 deletions

14
publish.sh Executable file
View File

@ -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

1
version.txt Normal file
View File

@ -0,0 +1 @@
v0.0.22