Skip to content

Commit

Permalink
Fixing gradle-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocarvalho777 committed Jun 21, 2022
1 parent a6e3e95 commit 09a5845
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ jobs:
# Secrets are managed by GitHub (see https://docs.github.com/en/actions/security-guides/encrypted-secrets)
- name: Retrieve, decode, import and export secring
env:
$SECRING_BASE64: ${{ secrets.SECRING_BASE64 }}
SECRING_BASE64: ${{ secrets.SECRING_BASE64 }}
run: |
echo $SECRING_BASE64 | base64 --decode > secring.gpg
gpg --import secring.gpg
export SECRING_FILE="$PWD/secring.gpg"
gpg --batch --import secring.gpg
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
Expand All @@ -48,4 +47,4 @@ jobs:
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

SECRING_FILE: ${{ github.workspace }}/secring.gpg

0 comments on commit 09a5845

Please sign in to comment.