Skip to content

Commit ddd7fa8

Browse files
RahulHereRahulHere
authored andcommitted
Auto-push tag in dump-version.sh
The script now pushes the tag to remote automatically after creating it. This allows the release workflow to find the tag when it runs. User flow is now simplified to: 1. ./dump-version.sh X.Y.Z 2. git push origin br_release
1 parent 2a72479 commit ddd7fa8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

dump-version.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
# 4. Update CHANGELOG.md ([Unreleased] -> [X.Y.Z] - date)
2222
# 5. Create git tag vX.Y.Z
2323
# 6. Commit the changes
24+
# 7. Push the tag to remote
2425
#
2526
# After running this script:
2627
# 1. Review the changes: git show HEAD
27-
# 2. Push to release: git push origin br_release vX.Y.Z
28+
# 2. Push to release: git push origin br_release
2829
# 3. CI workflow will create GitHub Release and publish to crates.io
2930
#
3031

@@ -73,7 +74,7 @@ while [[ $# -gt 0 ]]; do
7374
echo " $0 --dry-run # Preview changes without executing"
7475
echo ""
7576
echo "After running this script, push to trigger CI:"
76-
echo " git push origin br_release vX.Y.Z"
77+
echo " git push origin br_release"
7778
echo ""
7879
echo "CI workflow will:"
7980
echo " - Create GitHub Release with native binaries"
@@ -405,6 +406,12 @@ gopher-orch version: $GOPHER_ORCH_VERSION
405406
Changes:
406407
$(echo "$UNRELEASED_CONTENT" | head -15)
407408
"
409+
410+
# Push the tag to remote
411+
echo ""
412+
echo -e "${CYAN}Pushing tag $TAG_VERSION to remote...${NC}"
413+
git push origin "$TAG_VERSION"
414+
echo -e " ${GREEN}Tag pushed successfully${NC}"
408415
else
409416
echo -e " ${YELLOW}[DRY RUN] Would commit Cargo.toml and CHANGELOG.md${NC}"
410417
echo -e " ${YELLOW}[DRY RUN] Would create tag $TAG_VERSION${NC}"
@@ -423,7 +430,7 @@ echo -e "gopher-orch: ${CYAN}$GOPHER_ORCH_VERSION${NC}"
423430
echo ""
424431
echo -e "${YELLOW}Next steps:${NC}"
425432
echo " 1. Review the commit: git show HEAD"
426-
echo " 2. Push to release: git push origin br_release $TAG_VERSION"
433+
echo " 2. Push to release: git push origin br_release"
427434
echo ""
428435
echo -e "${CYAN}After pushing, CI will:${NC}"
429436
echo " - Create GitHub Release with native binaries"

0 commit comments

Comments
 (0)