release scripts: push the release branch to both forges
Push to the 'all' remote (GitHub + Gitea pushurls) instead of origin so releases are mirrored to Gitea too. CI still triggers via the GitHub pushurl. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a3f18bdab6
commit
273862c882
|
|
@ -26,7 +26,9 @@ echo "Merging $MAIN_BRANCH into $RELEASE_BRANCH..."
|
||||||
git merge $MAIN_BRANCH --no-ff -m "Release $VERSION"
|
git merge $MAIN_BRANCH --no-ff -m "Release $VERSION"
|
||||||
|
|
||||||
echo "Pushing $RELEASE_BRANCH..."
|
echo "Pushing $RELEASE_BRANCH..."
|
||||||
git push origin $RELEASE_BRANCH
|
# Push to the 'all' remote so the release branch lands on both GitHub and Gitea.
|
||||||
|
# CI (GitHub Actions) still triggers via the GitHub pushurl.
|
||||||
|
git push all $RELEASE_BRANCH
|
||||||
|
|
||||||
git checkout $MAIN_BRANCH
|
git checkout $MAIN_BRANCH
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,4 +34,6 @@ vim "$CHANGELOG"
|
||||||
# Commit and push
|
# Commit and push
|
||||||
git add "$CARGO_TOML" "$CHANGELOG"
|
git add "$CARGO_TOML" "$CHANGELOG"
|
||||||
git commit -m "Release v${new_version}"
|
git commit -m "Release v${new_version}"
|
||||||
git push --force origin "$(git branch --show-current):release"
|
# Push to the 'all' remote so the release branch lands on both GitHub and Gitea.
|
||||||
|
# CI (GitHub Actions) still triggers via the GitHub pushurl.
|
||||||
|
git push --force all "$(git branch --show-current):release"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue