From 74ea49be88e8511e37ab00cce24aa536ecd8012d Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Sun, 30 Jun 2024 14:38:58 -0400 Subject: [PATCH] Version 0.0.1-dev (#8) --- .github/workflows/publish.yml | 3 +++ build.gradle.kts | 3 --- gradle.properties | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4d81a0a..fcadad0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -105,6 +105,9 @@ jobs: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} + - name: Retrieve Version from gradle.properties + run: echo "VERSION_NAME=$(cat gradle.properties | grep "^version=" | awk -F'=' '{print $2}')" >> $GITHUB_ENV + - name: Publish release (main only) run: ./gradlew :invert-models:closeAndReleaseRepository :invert-gradle-plugin:closeAndReleaseRepository --no-configuration-cache --stacktrace if: success() && !endsWith(env.VERSION_NAME, '-SNAPSHOT') diff --git a/build.gradle.kts b/build.gradle.kts index fff66c1..2735ee2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -41,10 +41,7 @@ subprojects if (hasPublishPlugin) { val extension = it.extensions.getByType(MavenPublishBaseExtension::class.java) extension.apply { - // publishToMavenCentral(SonatypeHost.DEFAULT) - // or when publishing to https://s01.oss.sonatype.org publishToMavenCentral(SonatypeHost.S01, automaticRelease = true) - // or when publishing to https://central.sonatype.com/ signAllPublications() } } diff --git a/gradle.properties b/gradle.properties index 70ccd57..5262e25 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,4 +3,4 @@ kotlin.code.style=official android.useAndroidX=true group=com.squareup.invert -version=0.0.1-dev-SNAPSHOT +version=0.0.1-dev