|
| 1 | +# Release Process |
| 2 | + |
| 3 | +This document describes the versioning scheme and release process for the `strimzi/github-actions` repository. |
| 4 | + |
| 5 | +## Versioning Scheme |
| 6 | + |
| 7 | +| Concept | Format | Example | Description | |
| 8 | +|--------------------|---------------|----------------|-----------------------------------------------------| |
| 9 | +| Release tag | `vX.Y` | `v1.0`, `v1.3` | Immutable tag pointing to a specific release commit | |
| 10 | +| Floating major tag | `vX` | `v1`, `v2` | Always points to the latest `vX.Y` release | |
| 11 | +| Release branch | `release-X.x` | `release-1.x` | Branch for a major version series | |
| 12 | + |
| 13 | +We will then pin to a specific version (`v1.2`) for full reproducibility, or use the floating major tag (`v1`) to automatically get the latest patch within a major version. |
| 14 | + |
| 15 | +## Creating a Release Branch |
| 16 | + |
| 17 | +Before the first release of a new major version, create a release branch from `main`: |
| 18 | + |
| 19 | +```bash |
| 20 | +git checkout main |
| 21 | +git pull |
| 22 | +git checkout -b release-1.x |
| 23 | +git push origin release-1.x |
| 24 | +``` |
| 25 | + |
| 26 | +Once you will push the changes, the tests will be automatically triggered and can be review in Actions UI or in commits list. |
| 27 | + |
| 28 | +## Running the Release Workflow |
| 29 | + |
| 30 | +The release is performed via the **Release** workflow (`release.yml`), triggered manually using `workflow_dispatch` on a `release-X.x` branch. |
| 31 | + |
| 32 | +### Inputs |
| 33 | + |
| 34 | +| Input | Required | Description | |
| 35 | +|---------------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 36 | +| `version` | No | Release version (e.g., `1.3`). If empty, the minor version is auto-incremented from the latest `vX.Y` tag. Note that `v` is prepended autoamtically and shouldn't be in input string. | |
| 37 | +| `description` | No | Custom release description prepended before the auto-generated changelog. | |
| 38 | + |
| 39 | +### Auto-increment behavior |
| 40 | + |
| 41 | +When `version` is left empty, the workflow finds the latest `vX.Y` tag for the branch's major version and increments the minor number. |
| 42 | +If no tags exist yet, it starts at `X.0`. |
| 43 | + |
| 44 | +### Steps to release |
| 45 | + |
| 46 | +1. Go to **Actions** > **Release** in GitHub. |
| 47 | +2. Click **Run workflow**. |
| 48 | +3. Select the target `release-X.x` branch. |
| 49 | +4. Optionally enter a version and/or description. |
| 50 | +5. Click **Run workflow**. |
| 51 | + |
| 52 | +### What the workflow does |
| 53 | + |
| 54 | +1. **Validates** the branch matches the `release-X.x` pattern and extracts the major version. |
| 55 | +2. **Determines the version** — either from the manual input or by auto-incrementing. |
| 56 | +3. **Checks** that the tag does not already exist. |
| 57 | +4. **Creates and pushes** the `vX.Y` tag. |
| 58 | +5. **Force-updates** the floating `vX` tag to point to the same commit. |
| 59 | +6. **Generates release notes** using GitHub's auto-generated changelog, optionally prepended with a custom description. |
| 60 | +7. **Creates a GitHub Release** with the generated notes. |
| 61 | + |
| 62 | +## Compatibility |
| 63 | + |
| 64 | +> [!WARNING] |
| 65 | +> To ensure that actions remain functional across all Strimzi projects, compatibility between N and N-1 versions of the `github-actions` repository must be maintained. |
| 66 | +> This must be honored by every change made after the first release. |
0 commit comments