Skip to content
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

Release 1.1.0 + release process #185

Merged
merged 5 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions android/app/range/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
android.defaultConfig.applicationId = "net.twisterrob.blt.range"
android.defaultConfig.version {
major = 1
minor = 1
}

dependencies {
Expand Down
58 changes: 58 additions & 0 deletions docs/release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Website

0. Check [live][live] version is operational.
1. Ensure latest `main` in git clone.
1. Change `testDeployment` to `false` in `web/status-history/build.gradle.kts`.
1. `gradlew :web:status-history:appengineDeploy`
1. Verify new version is created in [Google Cloud Console][versions].
1. Check [live][live] version is operational.
1. Clean up old versions in [Google Cloud Console][versions].

[live]: https://twisterrob-london.appspot.com/
[versions]: https://console.cloud.google.com/appengine/versions?serviceId=default&project=twisterrob-london

# Android

For the full process see [.github/release.md][releasing].

1. Double-check the version number in `android/app/range/build.gradle` is the same as the milestone, if not, PR.
1. Ensure clean latest working copy.
```shell
git checkout main
git pull
git status
git reset --hard origin/main
```
1. Create artifacts
```shell
gradlew clean :android:app:range:release
```
1. Upload `%RELEASE_HOME%\android\net.twisterrob.blt.range*@*.zip` (latest):
* `net.twisterrob.blt.range@*+release.apk`
@ Developer Console
\> Release
\> Testing
\> Closed Testing
\> [Alpha][alpha]
* `proguard_mapping.txt`
@ Developer Console
\> Release
\> [App bundle explorer][bundle-explorer]
\> Downloads tab
\> Assets
\> ReTrace mapping file
1. Publish to Alpha.
1. Check [Pre-launch Report][pre-launch-report]
Generated in about 15 minutes after upload, if errors, then start again.
1. Wait until alpha stage is propagated and update current release version on my phone.
1. Smoke test for no errors.
1. If no errors, Promote to Beta or Prod with staged rollout.
1. Set up a reminder in calendar to check for crashes and bump rollout.

[releasing]: https://github.com/TWiStErRob/.github/blob/main/RELEASE.md
[alpha]: https://play.google.com/console/developers/7995455198986011414/app/4972239006863689375/tracks/4697686677597567422
[bundle-explorer]: https://play.google.com/console/developers/7995455198986011414/app/4972239006863689375/bundle-explorer-selector
[pre-launch-report]: https://play.google.com/console/developers/7995455198986011414/app/4972239006863689375/pre-launch-report/overview

## Prepare next release
1. Update version number in android/app/range/build.gradle anticipating minor and commit to `main`.
2 changes: 0 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ kotlin-serialization = "1.6.3"

jsr305 = "3.0.2"
kxml2 = "2.3.0"
sqlite-jdbc = "3.45.3.0"

androidx-swiperefreshlayout = "1.1.0"
androidx-fragment = "1.7.0"
Expand Down Expand Up @@ -68,7 +67,6 @@ snakeyaml = { module = "org.yaml:snakeyaml", version.ref = "snakeyaml" }

jsr305 = { module = "com.google.code.findbugs:jsr305", version.ref = "jsr305" }
kxml2 = { module = "net.sf.kxml:kxml2", version.ref = "kxml2" }
sqlite-jdbc = { module = "org.xerial:sqlite-jdbc", version.ref = "sqlite-jdbc" }
kotlin-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlin-datetime" }
kotlin-serialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-core", version.ref = "kotlin-serialization" }
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
Expand Down