Skip to content

Commit b297ea9

Browse files
authored
Add final task to announce the release (#297)
1 parent a8981b1 commit b297ea9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

run_release.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,15 @@ def modify_the_docs_by_version_page(db: ReleaseShelf) -> None:
11251125
)
11261126

11271127

1128+
def announce_release(db: ReleaseShelf) -> None:
1129+
if not ask_question(
1130+
"Have you announced the release at https://discuss.python.org/c/core-dev/23 "
1131+
"and https://www.blogger.com?\n"
1132+
"Tip: use the 'release' tag and 'releases' label respectively."
1133+
):
1134+
raise ReleaseException("The release has not been announced")
1135+
1136+
11281137
def post_release_merge(db: ReleaseShelf) -> None:
11291138
subprocess.check_call(
11301139
["git", "fetch", "--all"],
@@ -1448,6 +1457,7 @@ def _api_key(api_key: str) -> str:
14481457
Task(purge_the_cdn, "Purge the CDN of python.org/downloads"),
14491458
Task(modify_the_prereleases_page, "Modify the pre-release page"),
14501459
Task(modify_the_docs_by_version_page, "Update docs by version page"),
1460+
Task(announce_release, "Announce the release"),
14511461
]
14521462
automata = ReleaseDriver(
14531463
git_repo=args.repo,

0 commit comments

Comments
 (0)