From aea21622f7853978800741c70f640c1e3444dffd Mon Sep 17 00:00:00 2001 From: "matthias.lotz" Date: Sat, 29 Nov 2025 17:47:01 +0100 Subject: [PATCH] feat: Auto-push releases with --follow-tags --- scripts/release.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 906639e..4db5096 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -186,7 +186,15 @@ git tag -a "v${NEW_VERSION}" -m "Release v${NEW_VERSION}" echo -e "${GREEN}✓ Commit & Tag erstellt${NC}" echo "" -echo -e "${BLUE}Nächste Schritte:${NC}" -echo " git push && git push --tags" +echo -e "${BLUE}Pushe zu Remote...${NC}" + +# Push mit --follow-tags (pusht Commit + zugehörige Tags) +if git push --follow-tags; then + echo -e "${GREEN}✓ Erfolgreich gepusht${NC}" +else + echo -e "${RED}⚠ Push fehlgeschlagen - bitte manuell pushen:${NC}" + echo " git push --follow-tags" +fi + echo "" echo -e "${GREEN}✅ Release v${NEW_VERSION} fertig!${NC}"