1
1

Compare commits

...

2 Commits

Author SHA1 Message Date
b23d60a6ad
Updated publish for support git remotes. 2022-12-26 10:34:08 -05:00
e0da0c511a
Updating publishing logic. 2022-12-26 10:31:09 -05:00
2 changed files with 23 additions and 0 deletions

22
publish.sh Executable file
View File

@ -0,0 +1,22 @@
#!/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 --set-upstream origin --all
git push --set-upstream origin --tags
RESPONSE=
read -r -p " Would you like to push this to the main ss repo? (y) ": RESPONSE
if [ "$RESPONSE" != "y" ]; then
# optional; push to remote
git push --set-upstream ss-upstream --all
git push --set-upstream ss-upstream --tags
fi

1
version.txt Normal file
View File

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