Skip to content

Commit

Permalink
CI/CD Workflow Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rikkarth committed Dec 8, 2023
1 parent ff3e562 commit 6e297d5
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
- name: Release Maven package
uses: samuelmeuli/[email protected]
with:
maven_profiles: ossrh
gpg_private_key: ${{ secrets.gpg_private_key }}
gpg_passphrase: ${{ secrets.gpg_passphrase }}
nexus_username: ${{ secrets.nexus_username }}
Expand All @@ -80,6 +81,6 @@ jobs:
java-version: '8'
distribution: 'corretto'
- name: Publish to GitHub Packages
run: mvn --batch-mode deploy
run: mvn --batch-mode deploy -Pgithub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58 changes: 41 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,48 @@
<tag>${project.artifactId}-${project.version}</tag>
</scm>

<distributionManagement>
<repository>
<profiles>
<profile>
<id>github</id>
<name>GitHub Apache Maven Packages</name>
<url>https://maven.pkg.github.com/rikkarth/tooler-tools</url>
</repository>
</distributionManagement>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Apache Maven Packages</name>
<url>https://maven.pkg.github.com/rikkarth/tooler-tools</url>
</repository>
</distributionManagement>
</profile>

<profile>
<id>ossrh</id>
<distributionManagement>
<snapshotRepository>
<id>ossrh-snapshot</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh-release</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<dependencies>

Expand Down Expand Up @@ -144,17 +179,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down

0 comments on commit 6e297d5

Please sign in to comment.