Skip to content

Commit

Permalink
EDC extension - Maven Central publish
Browse files Browse the repository at this point in the history
- Move GPG passphrase to env variable instead of system property
- Remove unnecessary Maven setup configuration

Updates #352

Signed-off-by: Istvan Zoltan Nagy <[email protected]>
  • Loading branch information
istvan-nagy-epam committed Apr 9, 2024
1 parent 566fc23 commit 0c10b44
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/publish-edc-ext-to-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ jobs:
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Setup Maven Action
uses: s4u/[email protected]
with:
java-version: 17
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: List Keys (set up GPG)
shell: bash
run: |
Expand All @@ -70,7 +67,8 @@ jobs:
- name: Publish to the Maven Central Repository
shell: bash
run: |
mvn clean verify nexus-staging:deploy -Dgpg.passphrase="${{ secrets.ORG_GPG_PASSPHRASE }}" -f libraries/edc-extension/pom.xml -P release-to-central
mvn clean verify nexus-staging:deploy -f libraries/edc-extension/pom.xml -P release-to-central
env:
MAVEN_USERNAME: "${{ secrets.ORG_OSSRH_USERNAME }}"
MAVEN_PASSWORD: "${{ secrets.ORG_OSSRH_PASSWORD }}"
MAVEN_GPG_PASSPHRASE: "${{ secrets.ORG_GPG_PASSPHRASE }}"

0 comments on commit 0c10b44

Please sign in to comment.