From 9f29ff22274fb282d276240c1fcdb22cc1b7c81a Mon Sep 17 00:00:00 2001 From: Akshay Patidar Date: Tue, 2 Apr 2024 15:20:48 +0530 Subject: [PATCH] fix: add nexus staging release plugin for auto release (#13) * fix: add nexus staging release plugin for auto release Signed-off-by: Akshay Patidar * chore: remove maven release plugin Signed-off-by: Akshay Patidar * chore: update ci trigger Signed-off-by: Akshay Patidar --------- Signed-off-by: Akshay Patidar --- .github/workflows/ci.yml | 7 ++++--- .github/workflows/release-drafter.yml | 2 +- pom.xml | 21 +++++++++------------ 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de57ccb..519f89c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,10 @@ name: Continuous Integration on: push: - branches: [ '*' ] - - workflow_dispatch: + branches: + - master + pull_request: + types: [opened, reopened, synchronize] jobs: test: diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 0d0cfaf..bbb9043 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -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 }} diff --git a/pom.xml b/pom.xml index 4746316..b172829 100644 --- a/pom.xml +++ b/pom.xml @@ -78,11 +78,11 @@ 0.8.8 3.2.1 3.0.1 - 3.0.0-M7 + 1.6.13 3.2.0 - 2.2.6 3.1.2 + swagger ${project.basedir}/src/test/resources/config/swagger/swagger-info.json target/classes/webroot/swagger @@ -401,17 +401,14 @@ - org.apache.maven.plugins - maven-release-plugin - ${maven.release.plugin.version} + org.sonatype.plugins + nexus-staging-maven-plugin + ${maven.nexus.plugin.version} + true - true - release - v@{project.version} - true - chore(pom): bump version for next iteration - release(pom): prepare release @{releaseLabel} - deploy + ossrh + https://s01.oss.sonatype.org/ + true