From 84457aa0c4f19a3c21eff3b598875be375b58113 Mon Sep 17 00:00:00 2001 From: Leandro Campos Date: Mon, 3 Aug 2026 15:20:58 -0300 Subject: [PATCH 1/2] Run public releases on ephemeral Nvoip CI --- .github/workflows/publish.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 42ba4bc..e2a8e90 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,12 @@ on: release: types: [published] workflow_dispatch: + inputs: + publish: + description: Publish to Maven Central after validation + required: true + type: boolean + default: false permissions: contents: read @@ -11,7 +17,10 @@ permissions: jobs: maven-central: name: Publish to Maven Central - runs-on: ubuntu-latest + runs-on: + - codebuild-nvoip-ci-public-release-${{ github.run_id }}-${{ github.run_attempt }} + - organization-registration-name:Nvoip + - registration-group-id:4 steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 @@ -23,7 +32,10 @@ jobs: server-password: MAVEN_CENTRAL_TOKEN gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - - run: mvn --batch-mode deploy -P release + - if: github.event_name != 'release' && !inputs.publish + run: mvn --batch-mode verify + - if: github.event_name == 'release' || inputs.publish + run: mvn --batch-mode deploy -P release env: MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} From 0d8840e94e0e4826395b45561c70448bca5350d4 Mon Sep 17 00:00:00 2001 From: Leandro Campos Date: Mon, 3 Aug 2026 16:19:22 -0300 Subject: [PATCH 2/2] ci: run public releases on nvoip-ci container --- .github/workflows/publish.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e2a8e90..0460cff 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,10 +17,7 @@ permissions: jobs: maven-central: name: Publish to Maven Central - runs-on: - - codebuild-nvoip-ci-public-release-${{ github.run_id }}-${{ github.run_attempt }} - - organization-registration-name:Nvoip - - registration-group-id:4 + runs-on: [self-hosted, Linux, X64, nvoip-ci-public-release] steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4