1
1
Fork 1
sovereign-stack/publish.sh

15 lines
290 B
Bash
Raw Normal View History

2022-12-26 15:31:09 +00:00
#!/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