From 1075a1b0405a25cc807c138e37076840923e8ee4 Mon Sep 17 00:00:00 2001 From: Peter Thomas Date: Thu, 1 Feb 2024 11:56:42 +0530 Subject: [PATCH] [no ci] ci wip --- .github/workflows/maven-release.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 1f2fe2f56..c31bc0b5e 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -25,11 +25,6 @@ jobs: with: distribution: adopt java-version: 17 - server-id: ossrh - server-username: MAVEN_USERNAME - server-password: MAVEN_PASSWORD - gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} - gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: set maven version run: | mvn versions:set versions:commit -B -ntp -DnewVersion=${{ github.event.inputs.version }} @@ -51,6 +46,16 @@ jobs: docker tag karate-chrome karatelabs/karate-chrome:latest docker push karatelabs/karate-chrome:${{ github.event.inputs.version }} docker push karatelabs/karate-chrome:latest + - name: set up jdk 17 + uses: actions/setup-java@v4 + with: + distribution: adopt + java-version: 17 + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: maven deploy to central env: MAVEN_USERNAME: ${{ secrets.OSSRH_TOKEN_USER }}