From 311d26e50cbb64a33898bb4e35edee74e094afee Mon Sep 17 00:00:00 2001 From: Besmir Beqiri Date: Wed, 30 Oct 2024 22:10:39 +0100 Subject: [PATCH] Test release process to Maven Central via the GitHub CI --- .github/workflows/release.yml | 14 ++++++++++++-- CHANGELOG.md | 1 + gradle.properties | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a9f7d5a5..777306d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,17 +2,27 @@ name: CI Release on: release: + types: [published] # Triggers when a release is published + workflow_dispatch: # Allows manual triggering of the workflow env: BRANCH_NAME: ${{github.ref_name}} TRUNK_BRANCH_NAME: 'main' + PUBLISH_REPO_USERNAME: ${{secrets.PUBLISH_REPO_USERNAME}} + PUBLISH_REPO_PASSWORD: ${{secrets.PUBLISH_REPO_PASSWORD}} + SANDEC_SIGNING_KEY_ID: ${{secrets.SANDEC_SIGNING_KEY_ID}} + SANDEC_SIGNING_SECRET_KEY: ${{secrets.SANDEC_SIGNING_SECRET_KEY}} + SANDEC_SIGNING_PASSWORD: ${{secrets.SANDEC_SIGNING_PASSWORD}} + SANDEC_SONATYPE_USERNAME: ${{secrets.SANDEC_SONATYPE_USERNAME}} + SANDEC_SONATYPE_PASSWORD: ${{secrets.SANDEC_SONATYPE_PASSWORD}} + MAVEN_CENTRAL_AUTH_TOKEN: ${{secrets.MAVEN_CENTRAL_AUTH_TOKEN}} MAVEN_CENTRAL_PUBLISHING_TYPE: 'USER_MANAGED' jobs: release: name: 'Release' - runs-on: ubuntu-24.04 - if: github.repository.owner == 'JPro-one' + runs-on: ubuntu-latest + if: github.repository_owner == 'JPro-one' steps: - name: Verify Branch if: env.BRANCH_NAME != env.TRUNK_BRANCH_NAME diff --git a/CHANGELOG.md b/CHANGELOG.md index 04da9338..3b945b38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### 0.4.3 (TBA) +#### Improvements * Configure publishing of the all JPro Platform modules to the Maven Central repository. ---------------------- diff --git a/gradle.properties b/gradle.properties index ae959f3d..f241af33 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -JPRO_PLATFORM_VERSION = 0.4.3-SNAPSHOT +JPRO_PLATFORM_VERSION = 0.4.3 JPRO_VERSION = 2024.3.3 JAVAFX_VERSION = 17.0.12