Skip to content

Commit

Permalink
fix: add nexus staging release plugin for auto release (#13)
Browse files Browse the repository at this point in the history
* fix: add nexus staging release plugin for auto release

Signed-off-by: Akshay Patidar <[email protected]>

* chore: remove maven release plugin

Signed-off-by: Akshay Patidar <[email protected]>

* chore: update ci trigger

Signed-off-by: Akshay Patidar <[email protected]>

---------

Signed-off-by: Akshay Patidar <[email protected]>
  • Loading branch information
akshaypatidar1999 authored Apr 2, 2024
1 parent 66ff867 commit 9f29ff2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Continuous Integration

on:
push:
branches: [ '*' ]

workflow_dispatch:
branches:
- master
pull_request:
types: [opened, reopened, synchronize]

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:

steps:
- id: release-drafter
uses: release-drafter/release-drafter@v5
uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 9 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@
<maven.jacoco.plugin.version>0.8.8</maven.jacoco.plugin.version>
<maven.source.plugin.version>3.2.1</maven.source.plugin.version>
<maven.gpg.plugin.version>3.0.1</maven.gpg.plugin.version>
<maven.release.plugin.version>3.0.0-M7</maven.release.plugin.version>
<maven.nexus.plugin.version>1.6.13</maven.nexus.plugin.version>
<maven.checkstyle.plugin.version>3.2.0</maven.checkstyle.plugin.version>

<maven.swagger.plugin.jakarta.version>2.2.6</maven.swagger.plugin.jakarta.version>
<maven.dependency.plugin.version>3.1.2</maven.dependency.plugin.version>

<swagger.outputFileName>swagger</swagger.outputFileName>
<swagger.configurationFilePath>${project.basedir}/src/test/resources/config/swagger/swagger-info.json</swagger.configurationFilePath>
<swagger.outputPath>target/classes/webroot/swagger</swagger.outputPath>
Expand Down Expand Up @@ -401,17 +401,14 @@
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${maven.release.plugin.version}</version>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${maven.nexus.plugin.version}</version>
<extensions>true</extensions>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<releaseProfiles>release</releaseProfiles>
<tagNameFormat>v@{project.version}</tagNameFormat>
<signTag>true</signTag>
<scmDevelopmentCommitComment>chore(pom): bump version for next iteration</scmDevelopmentCommitComment>
<scmReleaseCommitComment>release(pom): prepare release @{releaseLabel}</scmReleaseCommitComment>
<goals>deploy</goals>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>

Expand Down

0 comments on commit 9f29ff2

Please sign in to comment.