Skip to content

Commit

Permalink
Update maven-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aborroy authored Aug 21, 2024
1 parent 90c03d0 commit 225022b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/maven-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,11 @@ jobs:
run:
mvn clean deploy -PmavenCentral -DskipTests --settings /home/runner/.m2/settings.xml -Dgpg.passphrase=${{ secrets.GPG_SIGNING_PASSPHRASE }}

- name: Get Staging Repository ID
id: get-staging-repo-id
run: |
REPO_ID=$(mvn nexus-staging:repositories -DstagingRepositoryId=* --settings /home/runner/.m2/settings.xml | grep -oP 'Staging repository ID: \K[^\s]+')
echo "STAGING_REPO_ID=$REPO_ID" >> $GITHUB_ENV
- name: Release staged artifacts
run: mvn nexus-staging:release -PmavenCentral --settings /home/runner/.m2/settings.xml
run: mvn nexus-staging:release -DstagingRepositoryId=${{ env.STAGING_REPO_ID }} --settings /home/runner/.m2/settings.xml

0 comments on commit 225022b

Please sign in to comment.