Skip to content

Commit 57adb8c

Browse files
committed
f
1 parent 602dfa3 commit 57adb8c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ jobs:
3838
- name: Publish
3939
# Note: even though we specify org.gradle.parallel=false in our CI gradle.properties, we want to be explicit
4040
# here about no parallelism to ensure we don't create disjointed staging repositories.
41-
run: ./gradlew --no-parallel assemble publish
41+
# Edit: unclear if above note is still possible with the new portal API / plugin implementation.
42+
# Note: --no-configuration-cache is documented as necessary due https://github.com/gradle/gradle/issues/22779
43+
# from https://vanniktech.github.io/gradle-maven-publish-plugin/central/#uploading-with-automatic-publishing
44+
run: ./gradlew --no-parallel --no-configuration-cache assemble publishToMavenCentral
4245
env:
43-
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.SONATYPE_USERNAME }}
44-
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.SONATYPE_PASSWORD }}
46+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
47+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
4548
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.CI_AT_DEEPHAVEN_KEY }}
4649
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.CI_AT_DEEPHAVEN_PASSWORD }}
4750
ORG_GRADLE_PROJECT_signingRequired: true

0 commit comments

Comments
 (0)