From fba34f65bcb125c4b847899105e4b718e4a39cf3 Mon Sep 17 00:00:00 2001 From: Michal Wyrzykowski Date: Fri, 12 Mar 2021 09:40:27 +0100 Subject: [PATCH] Sign maven artifacts Fix for #18 --- .github/workflows/ci.yml | 9 +++++++++ gradle.properties | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 gradle.properties diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8edb5e30..3681f5bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,3 +38,12 @@ jobs: run: | ./gradlew release -Prelease.customUsername=${{ secrets.REPOSITORY_ACCESS_TOKEN }} ./gradlew publish + - name : Test + env : + ORG_GRADLE_PROJECT_signingKeyId : ${{ secrets.SIGNING_KEY_ID }} + ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SIGNING_PASSWORD }} + SECRET_KEY_RING : ${{ secrets.SECRET_KEY_RING }} + run : | + mkdir secrets + echo ${{ secrets.ARTIFACTORY_API_KEY }} > secrets/private-key.gpg + ./gradlew publishToMavenLocal ; rm -f secrets/private-key.gpg diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 00000000..a3520f20 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,2 @@ +signing.keyId=FBDD8FF6 +signing.secretKeyRingFile=secrets/private-key.gpg