Skip to content

Commit

Permalink
debug commit
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Jul 19, 2024
1 parent 32fa96d commit ce16110
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/gradle-build-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,28 @@ jobs:
# - name: Get archive upload signing key
# run: echo "$SIGNING_KEY" | base64 --decode > $GITHUB_WORKSPACE/secring.gpg

# Configure GPG to use non-interactive pinentry mode and import the GPG key
# Configure GPG to use non-interactive pinentry mode
- name: Configure GPG
run: |
mkdir -p ~/.gnupg
echo "use-agent" > ~/.gnupg/gpg.conf
echo "pinentry-mode loopback" > ~/.gnupg/gpg-agent.conf
echo RELOADAGENT | gpg-connect-agent
# Import the GPG key
- name: Import GPG key
run: |
echo "$SIGNING_KEY" > gpg-secret-key.asc
gpg --batch --import gpg-secret-key.asc
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
# Verify GPG key import (optional)
- name: Verify GPG key import
run: gpg --list-secret-keys

- name: Gradle Upload Archives to Snapshot Repository
if: ${{ !inputs.release }}
run: ./gradlew publishSonatypePublicationToNexusSnapshotsRepository -PsonatypeUsername=$NEXUS_UNAME -PsonatypePassword=$NEXUS_PWD -Psigning.keyId=$SIGNING_KEYID -Psigning.password=$SIGNING_PWD
run: ./gradlew publishSonatypePublicationToNexusSnapshotsRepository -PsonatypeUsername=$NEXUS_UNAME -PsonatypePassword=$NEXUS_PWD -Psigning.keyId=$SIGNING_KEYID -Psigning.password=$SIGNING_PWD --info --stacktrace

- name: Gradle Upload Archives to Releases Repository
if: ${{ inputs.release }}
run: ./gradlew publishSonatypePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository -Prelease -PsonatypeUsername=$NEXUS_UNAME -PsonatypePassword=$NEXUS_PWD -Psigning.secretKeyRingFile=$GITHUB_WORKSPACE/secring.gpg -Psigning.keyId=$SIGNING_KEYID -Psigning.password=$SIGNING_PWD
run: ./gradlew publishSonatypePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository -Prelease -PsonatypeUsername=$NEXUS_UNAME -PsonatypePassword=$NEXUS_PWD -Psigning.keyId=$SIGNING_KEYID -Psigning.password=$SIGNING_PWD --info --stacktrace

0 comments on commit ce16110

Please sign in to comment.