2021-09-29 08:53:44 +00:00
|
|
|
#!/bin/sh
|
|
|
|
CURRENT_BRANCH=`git branch --show-current`
|
2021-10-06 11:13:36 +00:00
|
|
|
if [[ $CURRENT_BRANCH != "stable" ]]; then
|
|
|
|
echo "Not on stable branch"
|
2021-09-29 08:53:44 +00:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2021-10-04 20:59:08 +00:00
|
|
|
VERSION=`ci/version-number.sh`
|
|
|
|
DATE=`date "+%Y-%m-%d"`
|
|
|
|
CHANGELOG_GLOB="Passepartout/App/*/CHANGELOG.md"
|
2021-10-06 11:13:36 +00:00
|
|
|
sed -i '' -E "s/^.*Beta.*$/## $VERSION ($DATE)/" $CHANGELOG_GLOB
|
2021-10-04 20:59:08 +00:00
|
|
|
git commit -am "Release" && git tag -as "v$VERSION"
|