release-process (#7)

Reviewed-on: lxcafe/lxcafe#7
This commit is contained in:
2026-02-22 19:24:28 +01:00
parent c3828b8112
commit 5bffe8f68f
+9 -2
View File
@@ -11,6 +11,13 @@ if [ -n "$(git status --porcelain)" ]; then
exit 1 exit 1
fi fi
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [ "$CURRENT_BRANCH" != "main" ]; then
echo "Error: You must be on the main branch to release."
echo "Current branch: $CURRENT_BRANCH"
exit 1
fi
VERSION_FILE="VERSION" VERSION_FILE="VERSION"
SCRIPT_FILE="post_installation_script/Nachinstallationsarbeiten_LC_Esslingen_XFCE.sh" SCRIPT_FILE="post_installation_script/Nachinstallationsarbeiten_LC_Esslingen_XFCE.sh"
@@ -78,8 +85,8 @@ echo "Tag $NEXT_VERSION_STR created locally."
read -p "Push to origin (includes tags)? [y/N]: " push_confirm read -p "Push to origin (includes tags)? [y/N]: " push_confirm
if [[ "$push_confirm" == "y" || "$push_confirm" == "Y" ]]; then if [[ "$push_confirm" == "y" || "$push_confirm" == "Y" ]]; then
git push origin --tags git push origin main --tags
echo "Done! Gitea will create release from tag $NEXT_VERSION_STR" echo "Done! Gitea will create release from tag $NEXT_VERSION_STR"
else else
echo "Release prepared locally. Push manually with: git push origin --tags" echo "Release prepared locally. Push manually with: git push origin main --tags"
fi fi