forked from ss/sovereign-stack
Compare commits
2 Commits
3bc86d8aa3
...
b23d60a6ad
Author | SHA1 | Date | |
---|---|---|---|
b23d60a6ad | |||
e0da0c511a |
22
publish.sh
Executable file
22
publish.sh
Executable 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
1
version.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
v0.0.22
|
Loading…
Reference in New Issue
Block a user