From 770a262af8218b27fdb613581c8cf5efa583845d Mon Sep 17 00:00:00 2001 From: Henry Addo Date: Tue, 1 Oct 2024 19:03:41 -0700 Subject: [PATCH 1/2] Publish all generated artifacts to maven central --- .github/workflows/ci.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96a9987..06be78b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,16 +48,7 @@ jobs: publish: if: github.repository == 'dropbox/differ' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' needs: [build] - strategy: - matrix: - include: - - release-target: publishIosArm64PublicationToMavenCentral - os: macos-latest - - release-target: publishJvmPublicationToMavenCentral - os: ubuntu-latest - - release-target: publishLinuxX64PublicationToMavenCentral - os: ubuntu-latest - runs-on: ${{ matrix.os }} + runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@v4 @@ -75,7 +66,7 @@ jobs: uses: gradle/actions/setup-gradle@v4 - name: Publish release - run: ./gradlew ${{ matrix.release-target }} + run: ./gradlew publishAllPublicationsToMavenCentralRepository # All publications should go to Maven Central if: success() env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }} From f00ad1e60090eaca271aca42d905b4b18d9a6ba5 Mon Sep 17 00:00:00 2001 From: Henry Addo Date: Thu, 3 Oct 2024 11:20:19 -0700 Subject: [PATCH 2/2] Use the publish task so it publishes to all configured repositories --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06be78b..f8c1abd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,7 +66,7 @@ jobs: uses: gradle/actions/setup-gradle@v4 - name: Publish release - run: ./gradlew publishAllPublicationsToMavenCentralRepository # All publications should go to Maven Central + run: ./gradlew publish # Publish all artifacts to all configured repositories. Maven Central for this project. if: success() env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}