diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fdf9779..422abce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,6 +31,6 @@ jobs: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} NYON_USERNAME: ${{ secrets.NYON_USERNAME }} NYON_PASSWORD: ${{ secrets.NYON_PASSWORD }} - GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} - GPG_SECRET_KEY_PASSWORD: ${{ secrets.GPG_SECRET_KEY_PASSWORD }} + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_SECRET_KEY }} + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_SECRET_KEY_PASSWORD }} GPG_SECRET_KEY_ID: ${{ secrets.GPG_SECRET_KEY_ID }} diff --git a/build.gradle.kts b/build.gradle.kts index c3701e4..f4d4e95 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -180,10 +180,9 @@ kotlin { } signing { - val signingId = providers.environmentVariable("GPG_SECRET_KEY_ID").orNull - val signingKey = providers.environmentVariable("GPG_SECRET_KEY").orNull - val signingPassword = providers.environmentVariable("GPG_SECRET_KEY_PASSWORD").orNull - useInMemoryPgpKeys(signingId, signingKey, signingPassword) + val signingKey: String? by project + val signingPassword: String? by project + useInMemoryPgpKeys(signingKey, signingPassword) sign(publishing.publications) }