From f99e56d500c4956c81d48307c57cf9b9723ea0b7 Mon Sep 17 00:00:00 2001 From: Jan Kreutzfeld Date: Thu, 13 Jul 2023 10:53:25 +0200 Subject: [PATCH] fix(workflow):[-] Add helper script to properly pass arguments --- .github/workflows/gpghelper.sh | 1 + .github/workflows/maven-deploy.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/gpghelper.sh diff --git a/.github/workflows/gpghelper.sh b/.github/workflows/gpghelper.sh new file mode 100644 index 0000000000..ae87029a32 --- /dev/null +++ b/.github/workflows/gpghelper.sh @@ -0,0 +1 @@ +gpg --pinentry-mode loopback "$@" \ No newline at end of file diff --git a/.github/workflows/maven-deploy.yaml b/.github/workflows/maven-deploy.yaml index bcbf1f4c55..77f9ee921e 100644 --- a/.github/workflows/maven-deploy.yaml +++ b/.github/workflows/maven-deploy.yaml @@ -86,4 +86,4 @@ jobs: run: |- VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout -pl irs-registry-client) echo "Publishing Version $VERSION to Sonatype" - mvn gpg:sign-and-deploy-file -DgpgArguments=--pinentry-mode,loopback -Durl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=ossrh -Dfile=irs-registry-client/target/irs-registry-client-$VERSION-jar-with-dependencies.jar -DgroupId=org.eclipse.tractusx.irs -DartifactId=irs-registry-client -Dversion=$VERSION -Dpackaging=jar + mvn gpg:sign-and-deploy-file -Dgpg.executable="./gpghelper.sh -Durl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=ossrh -Dfile=irs-registry-client/target/irs-registry-client-$VERSION-jar-with-dependencies.jar -DgroupId=org.eclipse.tractusx.irs -DartifactId=irs-registry-client -Dversion=$VERSION -Dpackaging=jar