Skip to content
Merged
Changes from all commits
Commits
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
26 changes: 20 additions & 6 deletions .github/workflows/develop-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,26 @@ jobs:
${{ runner.os }}-maven-develop-
${{ runner.os }}-maven-

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}

- name: Verify GPG import
run: |
gpg --list-secret-keys --keyid-format LONG
echo "✅ GPG key imported successfully"

- name: Configure Maven Central Snapshots
uses: whelk-io/maven-settings-xml-action@v22
with:
servers: |
[
{
"id": "central",
"username": "${{ secrets.CENTRAL_TOKEN_USERNAME }}",
"password": "${{ secrets.CENTRAL_TOKEN_PASSWORD }}"
"username": "${env.CENTRAL_TOKEN_USERNAME}",
"password": "${env.CENTRAL_TOKEN_PASSWORD}"
}
]

Expand All @@ -110,13 +121,16 @@ jobs:

- name: Deploy to Maven Central Snapshots
run: |
mvn deploy -B --no-transfer-progress \
mvn clean deploy -B --no-transfer-progress \
-Pmaven-central-release \
-DskipTests=true \
-Dcentral.autoPublish=true
-Dcentral.autoPublish=true \
-Dgpg.keyname="$GPG_KEY_ID"
env:
SONATYPE_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}

- name: Verify Maven Central snapshot deployment
run: |
Expand Down