Skip to content

Commit

Permalink
Merge pull request #20 from eyedol/eyedol/publishAllTargets
Browse files Browse the repository at this point in the history
Publish all generated artifacts to maven central
  • Loading branch information
rharter authored Oct 4, 2024
2 parents e4ff59e + f00ad1e commit 6f81ff3
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 publish # Publish all artifacts to all configured repositories. Maven Central for this project.
if: success()
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
Expand Down

0 comments on commit 6f81ff3

Please sign in to comment.