Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
phillip-kruger authored Aug 27, 2024
1 parent 3ab9865 commit 516cf65
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,27 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'
server-id: central
server-username: ${{ secrets.CENTRAL_USERNAME }}
server-password: ${{ secrets.CENTRAL_PASSWORD }}
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Update version in pom.xml
run: |
RELEASE_VERSION=$(echo ${{ github.event.release.tag_name }} | sed 's/^v//')
mvn versions:set -DnewVersion=${RELEASE_VERSION} -DgenerateBackupPoms=false
- name: Build and publish to Maven Central
run: mvn clean deploy -P release -Dquarkus.profile=chappie -DskipTests -Dgpg.skip=false -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}
run: mvn clean deploy -P release -Dquarkus.profile=chappie -DskipTests
env:
MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

0 comments on commit 516cf65

Please sign in to comment.