Skip to content

Commit

Permalink
fix: Do everything in one go and add secrets
Browse files Browse the repository at this point in the history
Co-authored-by: Sven Uhlig <[email protected]>
  • Loading branch information
Takuto88 and sipgate-uhlig committed Jan 28, 2025
1 parent fc7c2be commit 4fdb9c4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build and test
run: mvn -B package
- name: Sign and deploy to Maven Central
run: mvn -B -DskipTests package gpg:sign deploy
- name: Build, Test, Sign and Deploy to Maven Central
env:
MAVEN_GPG_KEY: ${{ secrets.MAVEN_GPG_KEY }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
run: mvn -B package gpg:sign deploy

0 comments on commit 4fdb9c4

Please sign in to comment.