How to cut a stable release (vX.Y.Z) of MangaWorld, AnimeWorld, and NovelWorld for Android and
Desktop.
| Piece | Where | What it does |
|---|---|---|
otakuVersionName |
buildSrc/src/main/kotlin/AppInfo.kt |
App version name. The version code comes from GITHUB_RUN_NUMBER + 5000 on CI. |
CHANGELOG.md |
repo root | Release notes, one ## [X.Y.Z] - YYYY-MM-DD section per release. |
vX.Y.Z tag |
develop |
Pushing it triggers .github/workflows/main_release.yml. |
main_release.yml |
.github/workflows/ |
Builds the Android APKs and the Desktop installers, then creates the GitHub release. |
update.json |
master branch |
Drives the in-app update prompt on Android. Only update_real_version is used for the check. |
The Desktop apps update themselves from the per-app update .yml files that the release workflow
uploads to the GitHub release. They need no manual step.
- Decide which merged PRs are in the release. Anything merged after the tag commit goes into the next release.
- Set
otakuVersionNameinbuildSrc/src/main/kotlin/AppInfo.kttoX.Y.Z. - In
CHANGELOG.md, rename[Unreleased]to[X.Y.Z] - YYYY-MM-DD. Set the compare link tovPREVIOUS...vX.Y.Z. Check that every PR in the release is listed, and that no excluded PR is. - Open a PR with these changes (for example
chore(release): X.Y.Z) and merge it intodevelop.
-
Pull
developand check thatHEADis the commit you want to release. -
Create and push the tag. The tag must match
vX.Y.Zexactly. Other tag names skip the Desktop builds (.github/scripts/desktop-version.sh stable).git checkout develop git pull git tag vX.Y.Z git push origin vX.Y.Z
-
Watch the Release Workflow run:
gh run list --workflow main_release.yml --limit 1 gh run watch <run-id>
The Android jobs (
mangaworld,animeworld,novelworld) must succeed or no release is created. Desktop jobs arecontinue-on-error, so a failed Desktop leg does not block the release. Check them anyway. -
If a job fails for a flaky reason, rerun only the failed jobs:
gh run rerun <run-id> --failed
Open https://github.com/jakepurple13/OtakuWorld/releases/tag/vX.Y.Z and check that it has:
- The APKs for each app (
*-release.apk,*-no-firebase-release.apk, and the no-cloud variants). - Desktop installers for each app: ZIP/DMG (macOS arm64 and x64), NSIS
.exe(Windows), AppImage and.deb(Linux). - The per-app Desktop update
.ymlfiles.
Paste the CHANGELOG.md section for X.Y.Z into the release body if it is empty.
update.json lives on master, not develop. Do this only after the release has its APKs. The
prompt sends users to update_url, so it must not point at a missing release.
-
Check out
masterand editupdate.json:"update_real_version": "X.Y.Z", "update_url": "https://github.com/jakepurple13/OtakuWorld/releases/download/vX.Y.Z/",
-
Commit (
Update update.json to vX.Y.Z) and push tomaster. -
Check the live file:
curl -s https://raw.githubusercontent.com/jakepurple13/OtakuWorld/master/update.json
- On
develop, add a new## [Unreleased]section to the top ofCHANGELOG.mdwithvX.Y.Zas the compare base. - Watch Crashlytics for new issues in
X.Y.Zover the next few days.
Copy this into the release PR or an issue.
### Release vX.Y.Z
**Prepare (`develop`)**
- [ ] Decide which PRs are in the release (and which go to the next one)
- [ ] `otakuVersionName` in `buildSrc/src/main/kotlin/AppInfo.kt` set to `X.Y.Z`
- [ ] `CHANGELOG.md`: `[Unreleased]` renamed to `[X.Y.Z] - YYYY-MM-DD`, compare link updated
- [ ] Every included PR is in the changelog; no excluded PR is
- [ ] Release PR merged into `develop`
- [ ] CI green on `develop`
**Tag and build**
- [ ] `develop` pulled; `HEAD` is the release commit
- [ ] Tag `vX.Y.Z` created and pushed
- [ ] Release Workflow: `mangaworld`, `animeworld`, `novelworld` jobs passed
- [ ] Release Workflow: Desktop jobs passed (or failures understood)
- [ ] `Release APK` job passed
**GitHub release**
- [ ] APKs attached for all three apps (full, no-firebase, no-cloud)
- [ ] Desktop installers attached for all three apps (macOS, Windows, Linux)
- [ ] Desktop update `.yml` files attached
- [ ] Release notes filled in from `CHANGELOG.md`
**In-app update (`master`)**
- [ ] `update.json`: `update_real_version` = `X.Y.Z`
- [ ] `update.json`: `update_url` points at `.../releases/download/vX.Y.Z/`
- [ ] Pushed to `master`
- [ ] `curl` of the raw `update.json` shows the new version
**After**
- [ ] New `[Unreleased]` section added to `CHANGELOG.md` on `develop`
- [ ] Crashlytics checked for new issues in `X.Y.Z`