From 0f5728196689d07f9eb2661401c5c58c38733f41 Mon Sep 17 00:00:00 2001 From: Ahmad Kemsan Date: Wed, 5 Nov 2025 12:57:04 +0530 Subject: [PATCH 1/5] ci: update ci workflow to push version updates to release branch --- .github/workflows/maven-publish.yml | 28 ---------------------- .github/workflows/update-version.yml | 36 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/update-version.yml diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 05dca5a..2aadd8b 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -2,37 +2,9 @@ name: Maven Publish on: workflow_dispatch: - inputs: - libraryVersion: - description: 'Library Version' - required: true - default: '' - packageVersion: - description: 'Package Version' - required: true - default: '' jobs: - update-version: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Update Version - run: | - sed -i '/VERSION=/!b;cVERSION=\"v${{ github.event.inputs.libraryVersion }}";' ./download-libs.sh - - name: Commit, Tag and Push - run: | - git add ./download-libs.sh - git config user.name github-actions - git config user.email github-actions@github.com - git commit -m "updated version" | exit 0 - git tag ${{ github.event.inputs.packageVersion }} - git push & git push --tags - publish: - needs: update-version runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml new file mode 100644 index 0000000..ab8ce3d --- /dev/null +++ b/.github/workflows/update-version.yml @@ -0,0 +1,36 @@ +name: Update version + +on: + workflow_dispatch: + inputs: + libraryVersion: + description: 'Library Version' + required: true + default: '' + packageVersion: + description: 'Package Version' + required: true + default: '' + +jobs: + update-version: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Create new branch + run: git checkout -b release/${{ github.event.inputs.packageVersion }} + + - name: Update Version + run: | + sed -i '/VERSION=/!b;cVERSION=\"v${{ github.event.inputs.libraryVersion }}";' ./download-libs.sh + - name: Commit, Tag and Push + run: | + git add ./download-libs.sh + git config user.name github-actions + git config user.email github-actions@github.com + git commit -m "chore(package version): updated version" | exit 0 + git tag ${{ github.event.inputs.packageVersion }} + git push --set-upstream origin release/${{ github.event.inputs.packageVersion }} + git push --tags From f03f598585b65996c62d20f876468fef26e6e5b0 Mon Sep 17 00:00:00 2001 From: Ahmad Kemsan Date: Wed, 5 Nov 2025 12:57:31 +0530 Subject: [PATCH 2/5] chore: update company name in pom file --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index cf47b06..4da460c 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ - Cryptlex, LLC + Cryptlex, LLP https://cryptlex.com @@ -26,7 +26,7 @@ Cryptlex Team support@cryptlex.com - Cryptlex, LLC + Cryptlex, LLP https://cryptlex.com From 6073aa3597a73db732f368322750007715f2aa5e Mon Sep 17 00:00:00 2001 From: Ahmad Kemsan Date: Wed, 5 Nov 2025 19:01:11 +0530 Subject: [PATCH 3/5] chore: updated company name --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 4da460c..ceb8b1e 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ - Cryptlex, LLP + Cryptlex LLP https://cryptlex.com @@ -26,7 +26,7 @@ Cryptlex Team support@cryptlex.com - Cryptlex, LLP + Cryptlex LLP https://cryptlex.com From 373e5f560ec6ac71c8b732cb20dbc37b87c21fed Mon Sep 17 00:00:00 2001 From: Ahmad Kemsan Date: Thu, 4 Dec 2025 08:45:19 +0530 Subject: [PATCH 4/5] build: change waitUntil to validated to reduce ci build time --- pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ceb8b1e..f4c5114 100644 --- a/pom.xml +++ b/pom.xml @@ -89,7 +89,8 @@ central true true - published + + validated From fcc8b64f9a11decb1cf85824161f7e35529f1645 Mon Sep 17 00:00:00 2001 From: Ahmad Kemsan Date: Thu, 4 Dec 2025 09:03:13 +0530 Subject: [PATCH 5/5] refactor: move java package version update to update-version workflow --- .github/workflows/maven-publish.yml | 5 +---- .github/workflows/update-version.yml | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 2aadd8b..647631f 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -28,11 +28,8 @@ jobs: - name: Check Maven version run: mvn -version - - name: Update Version in pom.xml - run: mvn -B versions:set -DnewVersion=${{ github.event.inputs.packageVersion }} -DgenerateBackupPoms=false - - name: Publish to Central Portal - run: mvn -B -e clean deploy -Pdeploy -Drevision=${{ github.event.inputs.packageVersion }} + run: mvn -B -e clean deploy -Pdeploy env: MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} # Central Portal token diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index ab8ce3d..5cadb4e 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -25,9 +25,11 @@ jobs: - name: Update Version run: | sed -i '/VERSION=/!b;cVERSION=\"v${{ github.event.inputs.libraryVersion }}";' ./download-libs.sh + sed -i '/jar<\/packaging>/,//s/[^<]*<\/version>/${{ github.event.inputs.libraryVersion }}<\/version>/' pom.xml - name: Commit, Tag and Push run: | git add ./download-libs.sh + git add pom.xml git config user.name github-actions git config user.email github-actions@github.com git commit -m "chore(package version): updated version" | exit 0