Release Process
Creating a Releaseâ
-
Create a release branch from
main:open repo branches page:
https://github.com/legion-security/REPO-NAME/branchescreate new branch with name
release/YYYY-MM-DD -
Open a PR from
release/YYYY-MM-DDâproduction.Wait for all CI checks to go green before merging.
-
Merge the PR.
The production deployment pipeline triggers automatically on merge.
Last-Minute Fixesâ
If a fix is needed after the release branch is already created:
-
Merge the fix into
mainfirst. -
Create a new release branch from the updated
main:open repo branches page:
https://github.com/legion-security/REPO-NAME/branchescreate new branch with name
release/YYYY-MM-DD-2 -
Close the old PR and open a new one from the new branch.
Why not push directly to the release branch?
The release branch is a frozen snapshot of main at a specific point in time. Committing directly to it means the fix bypasses the normal review process on main and is never backported â it would be lost in the next release. Always fix in main first to keep branches in sync.