-
Notifications
You must be signed in to change notification settings - Fork 528
Maintainers checklist for releasing a new version or tag
Pavel Moravec edited this page Feb 22, 2024
·
1 revision
-
ideally week before the planned release date, write a last call for merge requests that want to get into the release
-
check if latest commit does not break some tests
-
optionally, run some own smoke tests on the current
main
-
do a commit bumping release, like https://github.com/sosreport/sos/commit/c1e0741844c8854e6d68389280700a688be515cf
- example commands for semi-automated change (need a manual review!)
newvers=4.6.2 # populate accordingly
oldvers=$(grep ^version docs/conf.py | cut -d\' -f2)
logdate=$(date "+%a %b %d %Y")
gituser="$(git config --get user.name) <$(git config --get user.email)>"
ubuntudistro=$(grep -m1 UBUNTU_DEB_IMAGE_NAME .cirrus.yml | cut -d'-' -f4)
sed -i "s/version = '${oldvers}'/version = '${newvers}'/1" docs/conf.py
sed -i "s/release = '${oldvers}'/release = '${newvers}'/1" docs/conf.py
sed -i "s/__version__ = \"${oldvers}\"/__version__ = \"${newvers}\"/1" sos/__init__.py
sed -i "s/Version: ${oldvers}/Version: ${newvers}/1" sos.spec
sed -i "/%changelog/a * ${logdate} ${gituser} = ${newvers}\n- New upstream release\n" sos.spec
# when dch from devscripts package is present:
DEBEMAIL="${gituser}" dch -v ${newvers} --distribution ${ubuntudistro} "New upstream release"
# .. otherwise:
debdate=$(TZ=UTC date "+%a, %d %b %Y %H:%M:%S +0000")
ed -s debian/changelog << EOF
0 i
sosreport (${newvers}) ${ubuntudistro}; urgency=medium
* New upstream release
-- ${gituser} ${debdate}
.
w
EOF
git diff
git add docs/conf.py sos/__init__.py sos.spec debian/changelog
-
in https://github.com/sosreport/sos/releases , draft a new release:
- Choose a tag without
sos-
prefix, i.e. just like 4.6.1 and not sos-4.6.1 - Release title =
sos-<tag>
(i.e.sos-4.6.1
) - for the release text, follow structure from e.g. https://github.com/sosreport/sos/releases/tag/4.6.0
- Choose a tag without
-
announce it with the same text on the sos-devel mailing list