Skip to content

Commit

Permalink
add tag before pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
jm33-m0 committed Jan 25, 2021
1 parent 1741414 commit 6220665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/submit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ yes_no() {

yes_no "[?] Add new tag" && (
read -r -p "[?] Enter new version tag: " tag
git tag "$tag" -a -m "$tag"
git tag "v$tag" -a -m "v$tag"
)

version=$(git describe --tags || git describe --always)
echo "$version" >.version
git add .version
git commit .version -m "bump version to $version"
git push --tags
git push origin --tags

0 comments on commit 6220665

Please sign in to comment.