From 693e9796250381c0604aa7634c26326491d0c34a Mon Sep 17 00:00:00 2001 From: Eli Hart Date: Fri, 30 Sep 2022 12:04:05 -0700 Subject: [PATCH] Prepare for release 3.0.1 --- RELEASING.md | 4 ++-- commitAndTagRelease.sh | 5 ++++- mvrx-common/build.gradle | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index e9d35a10..ebd6edb7 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -3,9 +3,9 @@ Releasing 1. Bump the VERSION_NAME property in `gradle.properties` based on Major.Minor.Patch naming scheme 2. Update `CHANGELOG.md`, adding the new release version and release notes -3. `commitAndTagRelease Major.Minor.Patch` +3. `./commitAndTagRelease.sh Major.Minor.Patch` 1. This will make a commit with the given release number and add the version tag - 2. eg "commitAndTagRelease 3.0.1" + 2. eg "./commitAndTagRelease.sh 3.0.1" 4. Add your sonatype login information under gradle properties mavenCentralUsername and mavenCentralPassword in your local user gradle.properties file 5. `./gradlew publish` to build the artifacts and publish them to maven 6. Open PR on Github and merge. Github action automated_github_release.yml will automatically publish as release on github diff --git a/commitAndTagRelease.sh b/commitAndTagRelease.sh index c82447c4..5c72b728 100755 --- a/commitAndTagRelease.sh +++ b/commitAndTagRelease.sh @@ -1,2 +1,5 @@ # Pass in a release number, eg 3.0.1 -c "Prepare for release $1" && git tag -a "v$1" -m "Release $1" \ No newline at end of file +git commit -am "Prepare for release $1" && git tag -a "v$1" -m "Release $1" +git push -u origin HEAD +branchName=$(git rev-parse --abbrev-ref HEAD) +/usr/bin/open -a "/Applications/Google Chrome.app" "https://github.com/airbnb/mavericks/compare/$branchName?expand=1" \ No newline at end of file diff --git a/mvrx-common/build.gradle b/mvrx-common/build.gradle index 945265fc..58c6fa8d 100644 --- a/mvrx-common/build.gradle +++ b/mvrx-common/build.gradle @@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { id 'java-library' id 'org.jetbrains.kotlin.jvm' + id 'com.vanniktech.maven.publish' } tasks.withType(KotlinCompile).all {