Skip to content

Commit

Permalink
chore: publish release artifacts via sonatype central portal
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed Jun 19, 2024
1 parent c9b7a0d commit b7a9233
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GPG_KEY: ${{ secrets.GPG_KEY }}
MVN_REPO_SERVER_USERNAME: ${{ secrets.MVN_REPO_SERVER_USERNAME }}
MVN_REPO_SERVER_PASSWORD: ${{ secrets.MVN_REPO_SERVER_PASSWORD }}
MVN_REPO_SERVER_ID: ${{ secrets.MVN_REPO_SERVER_ID }}
MVN_REPO_SERVER_RELEASE_URL: ${{ secrets.MVN_REPO_SERVER_RELEASE_URL }}

MVN_REPO_RELEASE_SERVER_ID: ${{ secrets.MVN_REPO_RELEASE_SERVER_ID }}
MVN_REPO_RELEASE_SERVER_USERNAME: ${{ secrets.MVN_REPO_RELEASE_SERVER_USERNAME }}
MVN_REPO_RELEASE_SERVER_PASSWORD: ${{ secrets.MVN_REPO_RELEASE_SERVER_PASSWORD }}
13 changes: 6 additions & 7 deletions .github/workflows/deploy-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ name: (📡) Deploy Snapshot

on:
push:
branches:
- main
branches:
- "main"
workflow_dispatch:

jobs:
deploy:
uses: sitepark/github-project-workflow/.github/workflows/maven-deploy-snapshot.yml@release/1.x
secrets:
MVN_REPO_SERVER_USERNAME: ${{ secrets.MVN_REPO_SERVER_USERNAME }}
MVN_REPO_SERVER_PASSWORD: ${{ secrets.MVN_REPO_SERVER_PASSWORD }}
MVN_REPO_SERVER_ID: ${{ secrets.MVN_REPO_SERVER_ID }}
MVN_REPO_SERVER_SNAPSHOT_URL: ${{ secrets.MVN_REPO_SERVER_SNAPSHOT_URL }}

MVN_REPO_SNAPSHOT_SERVER_ID: ${{ secrets.MVN_REPO_SNAPSHOT_SERVER_ID }}
MVN_REPO_SNAPSHOT_SERVER_USERNAME: ${{ secrets.MVN_REPO_SNAPSHOT_SERVER_USERNAME }}
MVN_REPO_SNAPSHOT_SERVER_PASSWORD: ${{ secrets.MVN_REPO_SNAPSHOT_SERVER_PASSWORD }}
MVN_REPO_SNAPSHOT_SERVER_URL: ${{ secrets.MVN_REPO_SNAPSHOT_SERVER_URL }}
17 changes: 9 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@
</configuration>
<!-- https://spotbugs.readthedocs.io/en/latest/maven.html -->
<dependencies>
<!-- overwrite dependency on spotbugs if you want to specify the version of spotbugs -->
<!-- overwrite dependency on spotbugs if you want to specify the version of
spotbugs -->
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs</artifactId>
Expand Down Expand Up @@ -365,18 +366,18 @@
</build>
<profiles>
<profile>
<id>nexus-staging-release</id>
<id>publish-release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.5.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit b7a9233

Please sign in to comment.