Skip to content

Commit

Permalink
ci: trying string template for secrets in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
janniclas committed Oct 24, 2024
1 parent 28546f8 commit e4efab2
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,16 @@ jobs:
with: # running setup-java again overwrites the settings.xml
distribution: 'temurin'
java-version: '21'
server-id: 'ossrh' # must match the serverId configured for the nexus-staging-maven-plugin
server-username: ORG_GRADLE_PROJECT_OSSRHUsername # Env var that holds your OSSRH user name
server-password: ORG_GRADLE_PROJECT_OSSRHPassword # Env var that holds your OSSRH user pw
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY_JN }} # Substituted with the value stored in the referenced secret
gpg-passphrase: ORG_GRADLE_PROJECT_signingPassword # Env var that holds the key's passphrase

- name: Setup Gradle
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4

- name: Publish to OSSRH
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USER }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PW }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY_JN }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE_JN }}
ORG_GRADLE_PROJECT_mavenCentralUsername: "${{ secrets.SONATYPE_USER }}"
ORG_GRADLE_PROJECT_mavenCentralPassword: "${{ secrets.SONATYPE_PW }}"
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.GPG_PRIVATE_KEY }}"
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}"
run: ./gradlew publish

- name: Generate Release Notes
Expand Down

0 comments on commit e4efab2

Please sign in to comment.