Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,22 @@ jobs:
VERSION="${GITHUB_REF_NAME#v}"
./mvnw --no-transfer-progress versions:set -DnewVersion="$VERSION" -DgenerateBackupPoms=false

- name: Publish idem-core and idem-sdk-kotlin to Maven Central
run: ./mvnw --no-transfer-progress -P release deploy -pl core,sdk-kotlin -DskipTests
# Deployed as two separate reactors, not one combined `-pl core,sdk-kotlin` run.
# central-publishing-maven-plugin (extensions=true) rebinds the deploy phase and
# shares one central-staging dir across all reactor projects that carry it; in a
# combined multi-module run, only the last project's bundle actually gets uploaded
# as its own Central component (idem-sdk-kotlin silently never landed on Central
# this way). One module per invocation gives each its own isolated staging dir,
# bundle, and deployment.
- name: Publish idem-core to Maven Central
run: ./mvnw --no-transfer-progress -P release deploy -pl core -DskipTests
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

- name: Publish idem-sdk-kotlin to Maven Central
run: ./mvnw --no-transfer-progress -P release deploy -pl sdk-kotlin -DskipTests
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
Expand Down