From 98085d1d45155dcf8441b8964b4011dd8dfdad2d Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Tue, 13 Feb 2024 05:17:02 +0100 Subject: [PATCH] build(Needs bump): Sign publication artifacts --- .github/workflows/release.yml | 7 +++++++ build.gradle.kts | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 970ac34d..b6d81cdb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,13 @@ jobs: persist-credentials: false fetch-depth: 0 + - name: Import GPG key + uses: crazy-max/ghaction-import-gpg@v6 + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.PASSPHRASE }} + fingerprint: ${{ env.GPG_FINGERPRINT }} + - name: Cache Gradle uses: burrunan/gradle-cache-action@v1 diff --git a/build.gradle.kts b/build.gradle.kts index a4e8044d..c720bc85 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -88,3 +88,8 @@ publishing { } } } + +signing { + useGpgCmd() + sign(publishing.publications["revanced-patcher-publication"]) +}