monitoring-plugins/doc/RELEASING.md

99 lines
2.8 KiB
Markdown
Raw Normal View History

Releasing a New Monitoring Plugins Version
==========================================
Throughout this document, it is assumed that the current Monitoring
2024-07-24 16:29:00 -04:00
Plugins version is 2.4.0, and that we're about to publish version 2.5.
It is also assumed that the official repository on GitHub is tracked
using the remote name `monitoring-plugins` (rather than `origin`).
Before you start
----------------
2022-10-19 08:31:59 -04:00
- Check Github Actions status.
- Update local Git repository to the current `master` tip. For a
2024-07-24 16:29:00 -04:00
maintenance release (e.g., version 2.4.1), update to the current
`maint-2.4` tip, instead.
Prepare and commit files
------------------------
- Update `configure.ac` and `NP-VERSION-GEN` with new version.
2024-07-24 16:29:00 -04:00
- Update `NEWS` from `git log --reverse v2.4.0..` output, and specify
the release version/date.
- Update `AUTHORS` if there are new team members.
- Update `THANKS.in` using `tools/update-thanks`.
- Commit the results:
git commit configure.ac NP-VERSION-GEN NEWS AUTHORS THANKS.in
Create annotated tag
--------------------
2024-07-24 16:29:00 -04:00
git tag -a -m 'Monitoring Plugins 2.5' v2.5
Push the code and tag to GitHub
-------------------------------
git push monitoring-plugins master
2024-07-24 16:29:00 -04:00
git push monitoring-plugins v2.5
Create new maintenance branch
-----------------------------
_Only necessary when creating a feature release._
2024-07-24 16:29:00 -04:00
git checkout -b maint-2.5 v2.5
git push -u monitoring-plugins maint-2.5
Checkout new version
--------------------
rm -rf /tmp/plugins
2024-07-24 16:29:00 -04:00
git archive --prefix=tmp/plugins/ v2.5 | (cd /; tar -xf -)
Build the tarball
-----------------
cd /tmp/plugins
2022-10-19 08:31:59 -04:00
tools/setup # requires docbook to be installed
./configure
make dist
Upload tarball to web site
--------------------------
2024-07-24 16:29:00 -04:00
scp monitoring-plugins-2.5.tar.gz \
plugins@orwell.monitoring-plugins.org:web/download/
2016-11-29 03:08:07 -05:00
Generate SHA1 checksum file on web site
---------------------------------------
ssh plugins@orwell.monitoring-plugins.org \
2024-07-24 16:29:00 -04:00
'(cd web/download; $HOME/bin/create-checksum monitoring-plugins-2.5.tar.gz)'
Announce new release
--------------------
- In the site.git repository:
2024-07-24 16:29:00 -04:00
- Create `web/input/news/release-2.5.md`.
- Update the `plugins_release` version in `web/macros.py`.
- Commit and push the result:
2024-07-24 16:29:00 -04:00
git add web/input/news/release-2.5.md
git commit web/input/news/release-2.5.md web/macros.py
git push origin master
- Post an announcement on (at least) the following mailing lists:
- <announce@monitoring-plugins.org>
- <help@monitoring-plugins.org> (set `Reply-To:` to this one)
- Ask the social media department to announce the release on Twitter :-)
If you want to mention the number of contributors in the announcement:
2024-07-24 16:29:00 -04:00
git shortlog -s v2.4.0..v2.5 | wc -l
<!-- vim:set filetype=markdown textwidth=72: -->