Skip to content

Commit ca480fc

Browse files
Update Airflow release docs (#26727)
Just some things I ran across when releasing 2.4.1rc1.
1 parent b4ce294 commit ca480fc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dev/README_RELEASE_AIRFLOW.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ The Release Candidate artifacts we vote upon should be the exact ones we vote ag
218218

219219
```shell script
220220
git checkout v${VERSION_BRANCH}-test
221+
git reset --hard origin/v${VERSION_BRANCH}-test
221222
```
222223

223224
- Set your version in `setup.py` (without the RC tag)
@@ -241,12 +242,14 @@ The Release Candidate artifacts we vote upon should be the exact ones we vote ag
241242

242243
```shell script
243244
git checkout v${VERSION_BRANCH}-stable
245+
git reset --hard origin/v${VERSION_BRANCH}-stable
244246
```
245247

246248
- PR from the 'test' branch to the 'stable' branch, and manually merge it once approved. Here's how to manually merge the PR:
247249
248250
```shell script
249251
git merge --ff-only v${VERSION_BRANCH}-test
252+
git push origin v${VERSION_BRANCH}-stable
250253
```
251254
252255
- Tag your release
@@ -276,7 +279,6 @@ The Release Candidate artifacts we vote upon should be the exact ones we vote ag
276279
- Tarball the repo
277280

278281
```shell script
279-
mkdir dist
280282
git archive --format=tar.gz ${VERSION} \
281283
--prefix=apache-airflow-${VERSION_WITHOUT_RC}/ \
282284
-o dist/apache-airflow-${VERSION_WITHOUT_RC}-source.tar.gz
@@ -307,7 +309,7 @@ The Release Candidate artifacts we vote upon should be the exact ones we vote ag
307309
```shell script
308310
git checkout origin/constraints-${VERSION_BRANCH}
309311
git tag -s "constraints-${VERSION}" -m "Constraints for Apache Airflow ${VERSION}"
310-
git push origin "constraints-${VERSION}"
312+
git push origin tag "constraints-${VERSION}"
311313
```
312314
313315
- Push the artifacts to ASF dev dist repo
@@ -327,6 +329,8 @@ The Release Candidate artifacts we vote upon should be the exact ones we vote ag
327329
cd ${VERSION}
328330
svn add *
329331
svn commit -m "Add artifacts for Airflow ${VERSION}"
332+
cd ${AIRFLOW_REPO_ROOT}
333+
rm -rf asf-dist
330334
```
331335
332336
## Prepare new release branches and cache - optional when first minor version is released

0 commit comments

Comments
 (0)