Skip to content

Commit

Permalink
Separate bump_version.sh and tag_release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Oct 27, 2024
1 parent 915eaef commit 993c730
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ if [[ "$1" != "" ]]; then
-- GlobaLeaks software signing key <[email protected]> $(date --rfc-email)\n\n$(cat debian/changelog)" > "$ROOTDIR"/debian/changelog

git commit -a -m "Bump to version $1"

git tag -s v$1 -m 'GlobaLeaks version $1' --force
else
echo -e "Please specify a version"
exit 1
Expand Down
12 changes: 12 additions & 0 deletions scripts/tag_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# This script tag a new release version
set -e

if [[ "$1" != "" ]]; then
echo "Tagging version v$1"

git tag -s v$1 -m 'GlobaLeaks version $1' --force
else
echo -e "Please specify a version"
exit 1
fi

0 comments on commit 993c730

Please sign in to comment.