Skip to content

Commit

Permalink
Added nexus plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
AdalbertMemSQL committed Jul 16, 2024
1 parent 4eabc83 commit f365f7e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package -DskipTests --file pom.xml -P assembly
run: mvn -B package --file pom.xml -P assembly
- name: Import GPG key
run: |
openssl enc -d -aes-256-cbc -K ${{ secrets.ENCRYPTION_KEY }} -iv ${{ secrets.ENCRYPTION_IV }} -in .github/workflows/secring.asc.enc -out .github/workflows/secring.asc
Expand All @@ -28,7 +28,7 @@ jobs:
cp .github/workflows/settings.xml ~/.m2/settings.xml
- name: Release to Maven Central
if: success()
run: mvn -B clean deploy --file pom.xml -P assembly -Dsonatype.username=${{ secrets.SONATYPE_USERNAME }} -Dsonatype.password=${{ secrets.SONATYPE_PASSWORD }}
run: mvn -B clean deploy --file pom.xml -P assembly -DskipTests -Dsonatype.username=${{ secrets.SONATYPE_USERNAME }} -Dsonatype.password=${{ secrets.SONATYPE_PASSWORD }}
- name: Release Plugin Archive
uses: softprops/action-gh-release@v1
with:
Expand Down
30 changes: 30 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,36 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<executions>
<execution>
<phase>deploy</phase>
</execution>
</executions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Expand Down

0 comments on commit f365f7e

Please sign in to comment.