Skip to content

Commit

Permalink
Publish all generated artifacts to maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedol committed Oct 2, 2024
1 parent e4ff59e commit 770a262
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 770a262

Please sign in to comment.