diff --git a/publish.sh b/publish.sh index bf09aa2..965725b 100755 --- a/publish.sh +++ b/publish.sh @@ -10,5 +10,13 @@ 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 +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