1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/docs/maintainers/Release_Process.md

81 lines
4.1 KiB
Markdown
Raw Normal View History

2024-07-16 20:29:20 +02:00
# Release Process
## Versioning
2023-09-17 00:49:17 +02:00
For releases VCMI uses version numbering in form "1.X.Y", where:
2023-09-17 00:49:17 +02:00
- 'X' indicates major release. Different major versions are generally not compatible with each other. Save format is different, network protocol is different, mod format likely different.
- 'Y' indicates hotfix release. Despite its name this is usually not urgent, but planned release. Different hotfixes for same major version are fully compatible with each other.
## Branches
2023-09-17 00:49:17 +02:00
Our branching strategy is very similar to GitFlow:
2023-09-17 00:49:17 +02:00
- `master` branch has release commits. One commit - one release. Each release commit should be tagged with version `1.X.Y` when corresponding version is released. State of master branch represents state of latest public release.
- `beta` branch is for stabilization of ongoing release. Beta branch is created when new major release enters stabilization stage and is used for both major release itself as well as for subsequent hotfixes. Only changes that are safe, have minimal chance of regressions and improve player experience should be targeted into this branch. Breaking changes (e.g. save format changes) are forbidden in beta.
- `develop` branch is a main branch for ongoing development. Pull requests with new features should be targeted to this branch, `develop` version is one major release ahead of `beta`.
2023-08-12 23:26:58 +02:00
## Release process step-by-step
2023-08-12 23:26:58 +02:00
### Initial release setup (major releases only)
Should be done immediately after start of stabilization stage for previous release
- Create project named `Release 1.X`
- Add all features and bugs that should be fixed as part of this release into this project
### Start of stabilization stage (major releases only)
2024-05-03 11:46:05 +02:00
Should be done 2 weeks before planned release date. All major features should be finished at this point.
2023-08-12 23:26:58 +02:00
- Create `beta` branch from `develop`
- Bump vcmi version in CMake on `develop` branch
- Bump version for Linux on `develop` branch
- Bump version and build ID for Android on `develop` branch
2023-09-17 00:49:17 +02:00
### Initial release setup (hotfix releases only)
- Bump vcmi version in CMake on `beta` branch
- Bump version for Linux on `beta` branch
- Bump version and build ID for Android on `beta` branch
### Release preparation stage
Should be done 1 week before release. Release date should be decided at this point.
- Make sure to announce codebase freeze deadline (1 day before release) to all developers
- Create pull request for release preparation tasks targeting `beta`:
- - Update [changelog](https://github.com/vcmi/vcmi/blob/develop/ChangeLog.md)
2024-05-03 11:46:05 +02:00
- - Update release date in `debian/changelog`
- - Update release date in `launcher/eu.vcmi.VCMI.metainfo.xml`
- - Update build ID `android/vcmi-app/build.gradle`
- - Update downloads counter in `docs/readme.md`
2023-08-12 23:26:58 +02:00
### Release preparation stage
Should be done 1 day before release. At this point beta branch is in full freeze.
- Merge release preparation PR into `beta`
- Merge `beta` into `master`. This will trigger CI pipeline that will generate release packages
- Create draft release page, specify `1.x.y` as tag for `master` after publishing
2023-09-17 00:49:17 +02:00
- Check that artifacts for all platforms have been built by CI on `master` branch
- Download and rename all build artifacts to use form `VCMI-1.X.Y-Platform.xxx`
- Attach build artifacts for all platforms to release page
2023-09-17 00:49:17 +02:00
- Manually extract Windows installer, remove `$PLUGINSDIR` directory which contains installer files and repackage data as .zip archive
- Attach produced zip archive to release page as an alternative Windows installer
2023-09-17 00:49:17 +02:00
- Upload built AAB to Google Play and send created release draft for review (usually takes several hours)
2023-08-12 23:26:58 +02:00
- Prepare pull request for [vcmi-updates](https://github.com/vcmi/vcmi-updates)
- (major releases only) Prepare pull request with release update for web site <https://github.com/vcmi/VCMI.eu>
2023-08-12 23:26:58 +02:00
### Release publishing phase
2023-08-12 23:26:58 +02:00
Should be done on release date
- Trigger builds for new release on Ubuntu PPA
- Publish new release on Google Play
2023-08-12 23:26:58 +02:00
- Publish release page
- Merge `master` into `develop`
- Merge prepared PR's for vcmi-updates and for website (if any)
- Close `Release 1.x` project
- Write announcements in social networks