From d4e14cc0fe562899307a15cc34c1b3056910a1c6 Mon Sep 17 00:00:00 2001 From: jo-elimu <1451036+jo-elimu@users.noreply.github.com> Date: Mon, 13 Nov 2023 22:47:10 +0700 Subject: [PATCH] chore: 1.2.20-SNAPSHOT --- README.md | 21 ++++++++++++++++++++- app/build.gradle | 4 ++-- utils/build.gradle | 6 +++--- 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4c1392f..53bf183 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,26 @@ After that, connect your Android device to the same Wi-Fi network as your comput ## Release 📦 -See [.github/workflows/gradle-release.yml](.github/workflows/gradle-release.yml) +To perform a release, follow these steps: + +1. Create a new branch for the release +1. Remove `-SNAPSHOT` + - from the `versionName` in `app/build.gradle` + - from the `versionName` in `utils/build.gradle` + - from the `version` in `utils/build.gradle` +1. Click "Draft a new release" at https://github.com/elimu-ai/content-provider/releases +1. Pick the new branch you created as the target branch +1. Create a new tag (e.g. `1.2.19`) +1. Choose a release title, and click "Publish release" +1. Ensure that the release appears at https://jitpack.io/#elimu-ai/content-provider with "Status: ok" +1. Prepare for next development iteration by bumping the version and adding `-SNAPSHOT` + - in the `versionCode` in `app/build.gradle` + - in the `versionName` in `app/build.gradle` + - in the `versionCode` in `utils/build.gradle` + - in the `versionName` in `utils/build.gradle` + - in the `version` under `publishing` in `utils/build.gradle` +1. Commit the changes +1. Create a pull request for merging your branch into `main` --- diff --git a/app/build.gradle b/app/build.gradle index 6de83a2..70a3ba2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "ai.elimu.content_provider" minSdkVersion 24 targetSdkVersion 33 - versionCode 1002019 - versionName "1.2.19" + versionCode 1002020 + versionName "1.2.20-SNAPSHOT" setProperty("archivesBaseName", "${applicationId}-${versionCode}") testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" javaCompileOptions { diff --git a/utils/build.gradle b/utils/build.gradle index 4c6ccd7..7744c1b 100644 --- a/utils/build.gradle +++ b/utils/build.gradle @@ -9,8 +9,8 @@ android { defaultConfig { minSdkVersion 24 targetSdkVersion 33 - versionCode 1002019 - versionName "1.2.19" + versionCode 1002020 + versionName "1.2.20-SNAPSHOT" setProperty("archivesBaseName", "utils-${versionName}") } @@ -37,7 +37,7 @@ publishing { utils(MavenPublication) { groupId 'ai.elimu.content_provider' artifactId 'utils' - version '1.2.19' + version '1.2.20-SNAPSHOT' artifact("${buildDir}/outputs/aar/utils-${version}-release.aar") } }