Skip to content
Snippets Groups Projects
Verified Commit f7ff4103 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Added script to automate releases

parent 19acf99b
No related branches found
No related tags found
No related merge requests found
Pipeline #28060 canceled
#!/bin/sh
VKCV_BRANCH="$(git status | awk 'NR == 1 { print $3 }')"
if [ "$VKCV_BRANCH" != "develop" ]; then
echo "WARNING: Please switch to origin/develop branch for preparing the next release!"
exit
fi
VKCV_VERSION="$(cat include/vkcv/Core.hpp | grep "#define VKCV_FRAMEWORK_VERSION" | awk 'NR == 1 { $1=""; $2=""; print }' | sed -e 's/[^0-9 ]//g' -- | awk '{print $1"."$2"."$3}')"
if [ $(git tag | grep "$VKCV_VERSION" | wc -l) -gt 0 ]; then
echo "WARNING: Please adjust the version of the framework before uploading a release! (Duplicate version: $VKCV_VERSION)"
exit
fi
vim CHANGELOG.md
git add CHANGELOG.md
git commit -S -s -m "========== VkCV-$VKCV_VERSION =========="
git push
git checkout master
git merge develop
git tag -a "$VKCV_VERSION" -m "VkCV-$VKCV_VERSION release"
git push
git push --tags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment