+- Release notes in the documentation
+ - The content of the future mail is part of the documentation, since
+ we won't send mails once gforge is definitly turned off.
+ - The date of the release is marked in the title
+- Tests
+ - The "make distcheck" target works (tested by jenkins)
+ - All tests pass on everything on ci
+ - Tutorials and derivative projects build correctly
+ https://framagit.org/simgrid/simgrid-template-s4u/pipelines
+ https://framagit.org/simgrid/external-projects-ci/pipelines
+ - The python module builds (see below).
+ - The java jarfile builds from the github action
+
+@subsection inside_release_c_releasing Actually releasing SimGrid
+
+- Update the version number in:
+ - CMakeLists.txt (in macros SIMGRID_VERSION_*)
+ - sonar-project.properties
+ - docs/source/conf.py
+ - setup.py
+- Commit and push to both framagit and github
+- Wait for jenkins/osX to complete the build
+- If it's not successful, fix it and push again
+- Once it's successful everywhere: merge 'master' into 'stable' and push it to framagit
+ - You can interrupt the build on jenkins, as it was tested just before
+ - This builds the tar.gz artefact.
+
+- Download the simgrid-doc-3.X.Y (artefact of pipeline 'pages' on framagit)
+ Download the tgz file (artefact of the pipeline 'stable' on framagit)
+ Build the jar file using the github action
+- Tag the git repository v3.XX.X and push it to framagit and ghub
+- Document the tag on framagit and ghub
+ - Upload the files simgrid-3.XX.tar.gz, simgrid-3_XX.jar and simgrid-doc-3_XX.zip
+ - Add a link to the version of the ChangeLog that comes with this tag.
+ https://framagit.org/simgrid/simgrid/-/blob/v3.29/ChangeLog
+- Update the website
+ - emacs org/org-templates/level-0.org to change the release version, the tgz link and the jar link.
+ - jed .gitlab-ci.yml
+ - Change the link to the simgrid-doc-3_XX.zip file
+ - Only keep 2 old versions so that people don't find older ones in google
+ - Change the link to latest
+ - git commit -a && git push # Check that the pipeline goes well on framagit
+
+- Rebuild and upload the python package
+ - rm -rf dist/ ; python3 setup.py sdist # Build a source distrib
+ - test that the built distrib recompiles:
+ rm -rf /tmp/pysimgrid && mkdir /tmp/pysimgrid && cp dist/simgrid-*.tar.gz /tmp/pysimgrid
+ (cd /tmp/pysimgrid && tar xfz simgrid*.tar.gz && cd simgrid-*/ && python3 setup.py build)
+ - Upload it to pypi (WARNING: you cannot modify uploaded files, ever)
+ twine upload dist/simgrid-*.tar.gz
+
+@subsection inside_release_c_publishing Publishing the release if it's a stable one (3.XX not 3.XX.Y)