Skip to content

Commit

Permalink
Test publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jdelga committed Dec 5, 2024
1 parent a835983 commit 6a90427
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: "Create release"
on:
push:
release:
types: [published]
jobs:
Expand All @@ -15,7 +16,7 @@ jobs:
java-version: '17'

- name: Build library
run: 'bash ./gradlew clean :library:assembleRelease'
run: 'bash ./gradlew clean :library:assembleRelease :library:signReleasePublication :library:signNoopPublication'

- name: Release library
env:
Expand All @@ -24,5 +25,5 @@ jobs:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }}
run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} publishNoopPublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }}
run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DSNAPSHOT_VERSION=${{ github.event.release.tag_name }} publishNoopPublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }}
--max-workers 1 closeAndReleaseStagingRepositories"
4 changes: 4 additions & 0 deletions mavencentral.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ publishing {
}
}

tasks.named("publish") {
dependsOn(tasks.named("jar"))
}

signing {
def signingKeyId = findProperty("signingKeyId")
def signingKey = findProperty("signingKey")
Expand Down

0 comments on commit 6a90427

Please sign in to comment.