2021-12-25 18:43:01 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# this script will tag the repo then push it to origin
|
2022-01-02 15:34:53 +00:00
|
|
|
TAG_NAME=v0.0.18
|
2021-12-25 18:43:01 +00:00
|
|
|
COMIT_MESSAGE="Creating commit on $(date)."
|
|
|
|
TAG_MESSAGE="Creating tag $TAG_NAME on $(date)."
|
|
|
|
|
|
|
|
# create a git commit with staged changes.
|
|
|
|
git commit -m "$COMIT_MESSAGE" -s
|
|
|
|
git tag -a "$TAG_NAME" -m "$TAG_MESSAGE" -s
|
|
|
|
|
|
|
|
# optional; push to remote
|
|
|
|
git push --all
|
|
|
|
git push --tags
|