diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3f7a30c0c7..4aa74fef6b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -104,19 +104,22 @@ jobs: with: java-version: "11" distribution: "temurin" + server-id: 'ossrh' # must match the serverId configured for the nexus-staging-maven-plugin + server-username: OSSRH_USERNAME + server-password: OSSRH_PASSWORD + gpg-passphrase: SIGN_KEY_PASS + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + cache: 'maven' - name: Publish JARs run: | - git config user.name github-actions - git config user.email github-actions@github.com - mvn release:clean release:prepare release:perform \ - --batch-mode \ + mvn -U -B clean deploy -P release \ -DreleaseVersion=$(git describe --tags --abbrev=0 | cut -c2-) \ - -Dtag=$(git describe --tags --abbrev=0) \ - -Dsonatype.username=${{ secrets.SONATYPE_USERNAME }} \ - -Dsonatype.password=${{ secrets.SONATYPE_PASSWORD }} \ - -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} \ - -DserverId=ossrh + -Dtag=$(git describe --tags --abbrev=0) + --projects ftl-runner,ftl-controller env: + SIGN_KEY_PASS: ${{ secrets.GPG_PASSPHRASE }} + OSSRH_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + OSSRH_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} GITHUB_TOKEN: ${{ github.token }} create-release: name: Release Go Binaries diff --git a/kotlin-runtime/ftl-generator/pom.xml b/kotlin-runtime/ftl-generator/pom.xml index cd99df202c..d7f539aa88 100644 --- a/kotlin-runtime/ftl-generator/pom.xml +++ b/kotlin-runtime/ftl-generator/pom.xml @@ -91,6 +91,7 @@ + ossrh https://s01.oss.sonatype.org/content/repositories/snapshots diff --git a/kotlin-runtime/ftl-runtime/pom.xml b/kotlin-runtime/ftl-runtime/pom.xml index 7b97e59e8c..997cd9fa90 100644 --- a/kotlin-runtime/ftl-runtime/pom.xml +++ b/kotlin-runtime/ftl-runtime/pom.xml @@ -98,6 +98,7 @@ + ossrh https://s01.oss.sonatype.org/content/repositories/snapshots diff --git a/pom.xml b/pom.xml index 405fbc0b37..35d3bcadd8 100644 --- a/pom.xml +++ b/pom.xml @@ -270,37 +270,28 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - true - - ossrh - https://s01.oss.sonatype.org/ - true - - - - org.apache.maven.plugins - maven-release-plugin - 3.0.1 - - true - false - release - deploy - - + release + + org.apache.maven.plugins + maven-release-plugin + 3.0.1 + + [ci skip] + true + false + release + deploy + + org.apache.maven.plugins maven-gpg-plugin @@ -313,12 +304,26 @@ sign - 0x088BCD86 - gpg.passphrase + + --pinentry-mode + loopback + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + ${maven.deploy.skip} + ossrh + https://s01.oss.sonatype.org/ + true + +