Skip to content

Commit

Permalink
Since altDeploymentRepository does not work with the nexus-staging-pl…
Browse files Browse the repository at this point in the history
…ugin, despite its documentation saying that it should, added it to distributionManagement

Signed-off-by: Laird Nelson <[email protected]>
  • Loading branch information
ljnelson committed Nov 10, 2023
1 parent 1e9ee23 commit 6647b2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/mvn-release-prepare-perform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
run: |
git config --global user.email '[email protected]'
git config --global user.name 'microbean'
mvn ${MVN_DEBUG} -e --batch-mode release:perform -DdryRun="${DRY_RUN}" -Dgoals="deploy,post-site" -Darguments="${MVN_DEBUG} -e -DaltDeploymentRepository=sonatype-oss-repository-hosting::default::https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DskipStaging=true"
mvn ${MVN_DEBUG} -e --batch-mode release:perform -DdryRun="${DRY_RUN}" -Dgoals="deploy,post-site" -Darguments="-e -DskipStaging=true"
- id: 'upload-site'
if: 'inputs.dryRun != true'
name: 'Step: Upload Site Directory'
Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
</scm>

<distributionManagement>
<repository>
<id>sonatype-oss-repository-hosting</id>
<!-- See https://central.sonatype.org/publish/publish-maven/#distribution-management-and-authentication -->
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<site>
<id>Github Pages</id>
<name>microBean™ Function Site</name>
Expand Down

0 comments on commit 6647b2a

Please sign in to comment.