diff --git a/.github/workflows/publish-maven-alice-ktx.yml b/.github/workflows/publish-maven-alice-ktx.yml index f302f2f..031e7f3 100644 --- a/.github/workflows/publish-maven-alice-ktx.yml +++ b/.github/workflows/publish-maven-alice-ktx.yml @@ -31,6 +31,10 @@ jobs: env: GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} + - name: Get absolute path of secring.gpg + id: gpg_path + run: echo "GPG_KEY_RING_PATH=$(realpath ~/.gnupg/secring.gpg)" >> $GITHUB_ENV + - name: Set up Gradle uses: gradle/gradle-build-action@v2 @@ -40,4 +44,5 @@ jobs: MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} - SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} \ No newline at end of file + SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} + SIGNING_SECRET_KEY_RING_FILE: ${{ env.GPG_KEY_RING_PATH }} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 65b5520..4ed1eac 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,5 +3,5 @@ kotlin.code.style=official mavenCentralUsername=${MAVEN_CENTRAL_USERNAME} mavenCentralPassword=${MAVEN_CENTRAL_PASSWORD} signing.keyId=${SIGNING_KEY_ID} -signing.secretKeyRingFile=gpg/secring.gpg +signing.secretKeyRingFile=${SIGNING_SECRET_KEY_RING_FILE} signing.password=${SIGNING_PASSWORD}