-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add administrative tasks for releasing 4C #253
Draft
amgebauer
wants to merge
1
commit into
4C-multiphysics:main
Choose a base branch
from
amgebauer:add-release-administrative-tasks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+30
−0
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ Additional information | |
coverage_report | ||
developer_ccache | ||
developer_cluster | ||
developer_release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
How to release |FOURC| | ||
---------------------- | ||
|
||
.. note:: | ||
This section is only relevant for the maintainers of the repository. | ||
|
||
|FOURC| is released regularly on GitHub. This section describes the | ||
administrative tasks that need to be performed for publishing a release on GitHub. Releases are | ||
managed and created by @4C-multiphysics/maintainer. | ||
|
||
1. Check whether all changes that should be part of the release are merged into the ``main``-branch. | ||
2. Update the version number in the ``VERSION`` file in the repo. The version scheme is ``YYYY.MINOR.PATCH``, where ``YYYY`` is the year of the release, ``MINOR`` is the number of the release in the year starting at ``1``, and ``PATCH`` is the patch number. ``PATCH`` is typically ``0`` and incremented on demand. Typically, this step only involves removing the ``-dev`` suffix from the version. | ||
3. Pick a commit from ``main``-branch where all nightly tests have passed and the above points are satisfied. | ||
4. Create a new branch from the commit chosen in the previous step. The branch should be named ``release/YYYY.MINOR.x``. Note, since all patches are maintained on this branch, the name does not contain the respective patch number. | ||
5. Create a new release on GitHub. The tag name should be ``vYYYY.MINOR.PATCH`` and the release title should be ``4C version vYYYY.MINOR.PATCH``. The release notes might contain a summary of the changes since the last release or a description of the fixed bugs in a PATCH release. | ||
6. Update the tags of the all docker images, e.g., ``4c`` and ``4c-dependencies-ubuntu24.04``. Add the tag ``YYYY.MINOR.PATCH`` to the images, and ``latest`` if it is the latest release. You can tag an image with the following commands locally: | ||
|
||
.. code-block:: shell | ||
|
||
docker pull ghcr.io/4c-multiphysics/4c:{version} | ||
docker tag ghcr.io/4c-multiphysics/4c:{version} ghcr.io/4c-multiphysics/4c:YYYY.MINOR.PATCH | ||
docker push ghcr.io/4c-multiphysics/4c:YYYY.MINOR.PATCH | ||
|
||
7. Prepare the next release in the `VERSION` file in the repo by incrementing the number of the release, resetting the patch number to `0` and adding the suffix `-dev`. | ||
|
||
.. note:: | ||
For a PATCH-release, only the steps 4 to 6 are necessary. Commits are typically added to the ``main`` | ||
branch and cherry-picked to the release branch. That ensures that the main branch is fixed and the | ||
PATCH itself is still comptabile with all projects consuming a specific version of |FOURC|. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reminds me of #240 :)