Skip to content
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
423d72f
Update to maven central publishing
dubdabasoduba Oct 15, 2025
c251668
git tag v1.0.4-SNAPSHOT
dubdabasoduba Oct 15, 2025
b3e3cc5
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Oct 15, 2025
34a0b21
Update to add maven central publishing
dubdabasoduba Oct 29, 2025
7277cd3
Adding the jar file so it's now missing during publishing
dubdabasoduba Oct 29, 2025
ff7cc4a
Remove settings from tracking
dubdabasoduba Oct 29, 2025
a7b272e
Cleaning up to make sure the javadoc JAR is built and ready for use
dubdabasoduba Oct 29, 2025
9918df4
💚 Fix the release build to avoid duplicate artifacts
dubdabasoduba Oct 29, 2025
97f45ac
🐛 Updating the workflow to add gpg signing
dubdabasoduba Oct 29, 2025
30e2a57
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Oct 29, 2025
3ad2abb
🐛 Update the ci workflow to make sure it fetch credentials from the c…
dubdabasoduba Oct 29, 2025
1e673d8
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Oct 29, 2025
9f87bb7
🐛 Fix bugs on decoding the keys
dubdabasoduba Oct 29, 2025
8ee7b80
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Oct 29, 2025
e529277
🐛 Updating to make sure gpg is found
dubdabasoduba Oct 29, 2025
8040a84
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Oct 29, 2025
1b96f4c
🐛 Update the permissions on the gpg files
dubdabasoduba Oct 29, 2025
9d4b836
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Oct 29, 2025
0bee7f6
🐛 Passphase missing fixes
dubdabasoduba Oct 29, 2025
b90e579
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Oct 29, 2025
4c62d93
🐛 Refactor workflow to reduce verbose
dubdabasoduba Oct 29, 2025
5597eaa
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Oct 29, 2025
7d13829
🐛 Mapp the passphrase to the correct key
dubdabasoduba Oct 29, 2025
93e4a39
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Oct 29, 2025
475c328
🔥 Remove broken file
dubdabasoduba Oct 29, 2025
5997897
🐛 Add file
dubdabasoduba Oct 29, 2025
ff116a4
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Oct 29, 2025
7ebbe75
🐛 Makes sure we do not use the setting.xml from the org
dubdabasoduba Oct 29, 2025
845c532
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Oct 29, 2025
ed317e0
🐛 Add debug on logs
dubdabasoduba Nov 4, 2025
41d9ad5
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Nov 4, 2025
1f90da9
🐛 Fix signing and still have debug logs for publishing
dubdabasoduba Nov 4, 2025
695f515
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Nov 4, 2025
d77ab59
🐛 Update the `envs`
dubdabasoduba Nov 4, 2025
6d3d494
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Nov 4, 2025
895f244
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Nov 4, 2025
7e0f19b
🐛 Update with more logs to see what maven uses for publishing
dubdabasoduba Nov 4, 2025
b4ac682
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Nov 4, 2025
e3bf489
🐛 Add variable-based credentials
dubdabasoduba Nov 4, 2025
b34bc70
Merge branch 'main' of github.com:opensrp/fhir-common-utils into feat…
dubdabasoduba Nov 4, 2025
c76139f
💚 Pick the correct credentials from secrets
dubdabasoduba Nov 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 14 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
contents: write # needed to create GitHub Releases

steps:
- name: Checkout
Expand All @@ -22,11 +22,11 @@ jobs:
fetch-depth: 0
submodules: recursive

# Ensure we do NOT inherit an org-level ~/.m2/settings.xml
# Ensure we DO NOT use any pre-provided ~/.m2/settings.xml (e.g., from org-level config)
- name: Remove any pre-existing Maven settings.xml
run: |
if [ -f "$HOME/.m2/settings.xml" ]; then
echo "Found existing ~/.m2/settings.xml — removing."
echo "Found existing ~/.m2/settings.xml — removing to avoid org-level settings."
rm -f "$HOME/.m2/settings.xml"
else
echo "No pre-existing ~/.m2/settings.xml found."
Expand All @@ -38,21 +38,24 @@ jobs:
distribution: temurin
java-version: "11"
cache: maven
# Force a fresh, generated settings.xml so nothing external is used
overwrite-settings: true

# Use VARIABLE inputs so settings.xml contains ${env.CENTRAL_USERNAME/PASSWORD}
# LITERAL credentials -> settings.xml will contain masked values (not ${env...})
server-id: central
server-username-variable: CENTRAL_USERNAME
server-password-variable: CENTRAL_PASSWORD
server-username: ${{ secrets.CENTRAL_USERNAME }} # Sonatype token NAME
server-password: ${{ secrets.CENTRAL_PASSWORD }} # Sonatype token VALUE

gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # ASCII-armored key
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # ASCII-armored secret key
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}

- name: Show effective settings (sanitized)
run: |
echo "Java version:" && java -version
echo "Java version:"
java -version
echo
echo "Maven version:" && mvn -v
echo "Maven version:"
mvn -v
echo
echo "Effective Maven settings (first 300 lines, passwords hidden):"
mvn -B -ntp help:effective-settings -DshowPasswords=false | sed -n '1,300p'
Expand All @@ -78,33 +81,23 @@ jobs:
mvn -B -ntp versions:set -DnewVersion="${{ steps.version.outputs.VERSION }}"
mvn -B -ntp versions:commit

# Show settings right before build with env present
# Show settings right before build
- name: Show effective settings before build (sanitized)
run: mvn -B -ntp help:effective-settings -DshowPasswords=false | sed -n '1,300p'
env:
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}

- name: Build & test (signs at verify)
run: mvn -X -B -ntp clean verify
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}

# Show settings right before deploy with env present
# Show settings right before deploy
- name: Show effective settings before deploy (sanitized)
run: mvn -B -ntp help:effective-settings -DshowPasswords=false | sed -n '1,300p'
env:
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}

- name: Deploy to Sonatype Central
run: mvn -X -B -ntp deploy -DskipTests
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}

- name: Verify artifacts & signatures
if: always()
Expand Down
Loading