diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b2f5cbf..b79d10e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -31,6 +31,9 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0 + - name: Set up GPG + uses: olafurpg/setup-gpg@v3 + # Step to grant execute permissions to the Gradle wrapper script - name: Grant execute permission for gradlew run: chmod +x gradlew @@ -47,6 +50,9 @@ jobs: - name: Add signing password to gradle.proeprties run: echo "signing.password=${{ secrets.OSS_SIGNING_PASSWORD }}" >> gradle.properties + - name: create secring.gpg file + run: gpg --export-secret-keys -o secring.gpg + - name: Decode and set up GPG secring file env: GPG_SECRET_RING: ${{ secrets.SECRET_FILE_CONTENT }}