You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Set your release version
VERSION="3.3.0"# Step 1: Checkout the base branch (usually 'main')
git checkout main
git pull origin main
# Step 2: Create and push the release branch
git checkout -b release/$VERSION
git push -u origin release/$VERSION# Step 3: Tag the first release candidate
git tag -a $VERSION-rc1 -m "Release candidate 1 for $VERSION"
git push origin $VERSION-rc1
# Later... once RC is approved# Step 4: Finalize the release
git checkout release/$VERSION
git pull origin release/$VERSION
git checkout main
git pull origin main
git merge --no-ff release/$VERSION -m "Merge release $VERSION"
git tag -a $VERSION -m "Final release $VERSION"
git push origin main
git push origin $VERSION# Step 5 (Optional): Clean up the release branch
git branch -d release/$VERSION
git push origin --delete release/$VERSION