Skip to content

Commit

Permalink
Version 0.0.1-dev (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
handstandsam authored Jun 30, 2024
1 parent 8fb0346 commit 74ea49b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
3 changes: 0 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 74ea49b

Please sign in to comment.