Skip to content

Commit

Permalink
Publish only to Maven Central on CI (#2078)
Browse files Browse the repository at this point in the history
This avoids publishing to the test-local repo which, while cheap, does a bunch of file I/O which is slow on Macs.
  • Loading branch information
JakeWharton authored Jun 4, 2024
1 parent 4949a66 commit f75ba0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ jobs:
java-version: 21
- uses: gradle/actions/setup-gradle@v3

- run: ./gradlew publish
- run: ./gradlew publishToMavenCentral
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
run: ./gradlew publish dokkaHtmlMultiModule jsBrowserProductionWebpack
run: ./gradlew publishToMavenCentral dokkaHtmlMultiModule jsBrowserProductionWebpack

- name: Extract release notes
id: release_notes
Expand Down

0 comments on commit f75ba0f

Please sign in to comment.