File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111VERSION_FILE=" emails/__init__.py"
1212CHANGELOG=" CHANGELOG.md"
1313
14+ if ! command -v gh > /dev/null 2>&1 ; then
15+ echo " Error: GitHub CLI (gh) is required to create a GitHub Release."
16+ exit 1
17+ fi
18+
1419current=$( sed -n " s/^__version__ = '\([^']*\)'/\1/p" " $VERSION_FILE " )
1520if [[ -z " $current " ]]; then
1621 echo " Error: could not read version from $VERSION_FILE "
@@ -58,6 +63,13 @@ git add "$VERSION_FILE" "$CHANGELOG"
5863git commit -m " Release v${new_version} "
5964git tag " v${new_version} "
6065
66+ # --- Publish and create GitHub Release ---
67+ git push
68+ git push origin " v${new_version} "
69+ gh release create " v${new_version} " \
70+ --title " v${new_version} " \
71+ --generate-notes \
72+ --verify-tag
73+
6174echo " "
62- echo " Done. Created commit and tag v${new_version} ."
63- echo " Run 'git push && git push --tags' to publish."
75+ echo " Done. Created commit, tag, and GitHub Release v${new_version} ."
You can’t perform that action at this time.
0 commit comments