From 0b29fae0301ea75e20482fb35f2999c57248f186 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Sat, 22 Jun 2024 15:46:23 +0200 Subject: [PATCH 1/2] [Build] Enabled gpg-signing for snapshot builds again --- .github/workflows/maven-build-master-and-publish-snapshot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven-build-master-and-publish-snapshot.yml b/.github/workflows/maven-build-master-and-publish-snapshot.yml index aa7346de0..f45ae8588 100644 --- a/.github/workflows/maven-build-master-and-publish-snapshot.yml +++ b/.github/workflows/maven-build-master-and-publish-snapshot.yml @@ -22,7 +22,7 @@ jobs: with: gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} - - run: mvn -f symja_android_library -B -U -P publish-to-maven-central,exact-target-jdk deploy -Dgpg.skip=true + - run: mvn -f symja_android_library -B -U -P publish-to-maven-central,exact-target-jdk deploy # Deployment of all modules is deferred to the last module by nexus-staging-maven-plugin env: MAVEN_USERNAME: ${{ secrets.OSSRH_TOKEN_USERNAME }} From d57715f83cc79e12ab2489312a76c5a83e1ecef9 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Sat, 22 Jun 2024 15:49:47 +0200 Subject: [PATCH 2/2] [TMP] Test signing on PR builds --- .github/workflows/maven-build-master-and-publish-snapshot.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-build-master-and-publish-snapshot.yml b/.github/workflows/maven-build-master-and-publish-snapshot.yml index f45ae8588..83ad891bc 100644 --- a/.github/workflows/maven-build-master-and-publish-snapshot.yml +++ b/.github/workflows/maven-build-master-and-publish-snapshot.yml @@ -7,7 +7,7 @@ name: Maven build and publish Master Snapshot on: push: - branches: [ master ] + branches: [ master, enable-gpg-signing ] jobs: maven-build-master-and-publish-to-maven-central: @@ -22,7 +22,7 @@ jobs: with: gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} - - run: mvn -f symja_android_library -B -U -P publish-to-maven-central,exact-target-jdk deploy + - run: mvn -f symja_android_library -B -U -e -X -Ppublish-to-maven-central,exact-target-jdk install # Deployment of all modules is deferred to the last module by nexus-staging-maven-plugin env: MAVEN_USERNAME: ${{ secrets.OSSRH_TOKEN_USERNAME }}