Skip to content

Commit

Permalink
Tidy up actions
Browse files Browse the repository at this point in the history
  • Loading branch information
parj-hsbc committed Aug 15, 2024
1 parent 498428c commit 7c1c361
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ jobs:
"configuration": {}
}]
- name: Upload snapshot
run: mvn \
--no-transfer-progress \
--batch-mode \
-Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \
clean deploy
- name: Verify package
run: mvn --batch-mode verify

- name: Release package
run: mvn --batch-mode -DskipTests=true releaser:release
22 changes: 15 additions & 7 deletions .github/workflows/snapshot-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,24 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- id: publish-to-central-and-docker
name: Publish to Central Repository and Docker
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
- name: Set up maven settings
uses: s4u/maven-settings-action@v2.8.0
with:
servers: |
[{
"id": "ossrh",
"username": "${{ secrets.OSSRH_USER_V2 }}",
"password": "${{ secrets.OSSRH_TOKEN_V2 }}"
},
{
"id": "gpg.passphrase",
"passphrase": "${{ secrets.GPG_SECRET_KEY_PASSWORD }}",
"configuration": {}
}]
- name: Upload snapshot
run: |
mvn \
--no-transfer-progress \
--batch-mode \
-Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \
clean deploy

0 comments on commit 7c1c361

Please sign in to comment.