Skip to content

Commit

Permalink
fix input
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivchar Vitaly committed Jul 19, 2024
1 parent a7307ea commit 4422a82
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- maven

env:
SONATYPE_TOKEN: ${{ secrets.SONATYPE_TOKEN }}
SECRET_PASSPHRASE: ${{ secrets.SECRET_PASSPHRASE }}
Expand All @@ -28,11 +29,11 @@ jobs:

- name: Prepare environment
run: |
echo '$SIGNING_SECRET_KEY_RING_CONTENT' | base64 -id > publish_key.gpg
echo "$SIGNING_SECRET_KEY_RING_CONTENT" | base64 -d > publish_key.gpg
gpg --quiet --batch --yes --decrypt --passphrase="$SECRET_PASSPHRASE" --output secret.gpg publish_key.gpg
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew

- name: Publish with gradle
run: ./gradlew publish -Psigning.secretKeyRingFile=secret.gpg -Psigning.keyId=$SIGNING_KEYID -Psigning.password=$SIGNING_PASSWORD -Ptoken="$TOKEN"
- name: Publish with Gradle
run: ./gradlew publish -Psigning.secretKeyRingFile=secret.gpg -Psigning.keyId=$SIGNING_KEYID -Psigning.password=$SIGNING_PASSWORD -Ptoken="$SONATYPE_TOKEN"

0 comments on commit 4422a82

Please sign in to comment.