Skip to content

Commit

Permalink
Fix it felix
Browse files Browse the repository at this point in the history
  • Loading branch information
purejava committed Jan 8, 2025
1 parent 13948fb commit 6fef67d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release_to_maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ jobs:
echo -n "signing.keyId=ABC48776" >> ~/.gradle/gradle.properties
echo -n "signing.password=${GPG_SIGNING_KEY_PW}" >> ~/.gradle/gradle.properties
echo -n "signing.secretKeyRingFile=../maven.keystore" >> ~/.gradle/gradle.properties
echo -n "sonatypeUsername=${ORG_GRADLE_PROJECT_sonatypeUsername}" >> ~/.gradle/gradle.properties
echo -n "sonatypePassword=${ORG_GRADLE_PROJECT_sonatypePassword}" >> ~/.gradle/gradle.properties
echo -n "$GPG_SIGNING_KEY_B64" | base64 --decode > ../maven.keystore
env:
GPG_SIGNING_KEY_B64: ${{ secrets.GPG_PRIVATE_KEY_B64 }}
GPG_SIGNING_KEY_PW: ${{ secrets.GPG_PASSPHRASE }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.NEXUS_PASSWORD }}

- name: Set up Java
uses: actions/setup-java@v4
Expand All @@ -38,6 +42,3 @@ jobs:

- name: Publish package
run: ./gradlew publishToSonatype closeSonatypeStagingRepository
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.NEXUS_PASSWORD }}

0 comments on commit 6fef67d

Please sign in to comment.