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
- The commit message for the release branch must include "Merge pull request" and "release-v$VERSION" to trigger the release workflows
88
99
89
100
## Best Practices
90
101
@@ -107,4 +118,95 @@ This "fix forward" approach ensures:
107
118
- A clear audit trail of changes
108
119
- Proper versioning of fixes
109
120
- Consistent release history
110
-
- No disruption to users who have already upgraded
121
+
- No disruption to users who have already upgraded
122
+
123
+
124
+
# Manual Release Workflow
125
+
126
+
The automated release process is new, and may need some debugging pending more runs in production. In the case you need to release a new version and the release workflow in github actions fails, you can do a manual release.
127
+
128
+
## Manual Release Process
129
+
130
+
### 1. Creating a Release Branch
131
+
132
+
Run the draft-release script locally:
133
+
```bash
134
+
# For a minor version bump, auto generating the version
135
+
./scripts/release/draft-release minor
136
+
137
+
# You can also bump from a specific previous version
138
+
./scripts/release/draft-release patch 1.2.2
139
+
```
140
+
141
+
This method will:
142
+
- Create a new release branch (e.g., `release-v$VERSION`)
143
+
- Update version in `pyproject.toml`
144
+
- Update `CHANGELOG.md` with all changes since the last release
145
+
- Create a draft pull request
146
+
147
+
**Requirements**
148
+
- Review all changelog entries
149
+
- The commit message for the release branch must include "Merge pull request" and "release-v$VERSION" to trigger the release workflows.
150
+
```
151
+
Merge pull request release-v$VERSION
152
+
```
153
+
154
+
### 2. Moratorium Check and Obtain Release Lock
155
+
Run script manually to check for moratorium and obtain release lock.
156
+
157
+
```bash
158
+
# Get the latest SHA from the most recent commit (ensure this commit is the release branch commit to main)
0 commit comments