Skip to content

Commit

Permalink
fix java workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
affonsov committed Jun 28, 2024
1 parent 26dca80 commit b112082
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,17 @@ jobs:
with:
redis-version: ${{ matrix.redis }}

- name: Create secret key ring file
working-directory: java/client
run: |
echo "$SECRING_GPG" | base64 --decode > ./secring.gpg
ls -ltr
env:
SECRING_GPG: ${{ secrets.SECRING_GPG }}

- name: Build java client
working-directory: java
run: ./gradlew --continue build
run: ./gradlew --continue build :client:publishToMavenLocal -Psigning.secretKeyRingFile=secring.gpg -Psigning.password="${{ secrets.GPG_PASSWORD }}" -Psigning.keyId=${{ secrets.GPG_KEY_ID }}

- name: Ensure no skipped files by linter
working-directory: java
Expand Down Expand Up @@ -164,9 +172,17 @@ jobs:
working-directory: java
run: cargo build --release

- name: Create secret key ring file
working-directory: java/client
run: |
echo "$SECRING_GPG" | base64 --decode > ./secring.gpg
ls -ltr
env:
SECRING_GPG: ${{ secrets.SECRING_GPG }}

- name: Build java part
working-directory: java
run: ./gradlew --continue build
run: ./gradlew --continue build :client:publishToMavenLocal -Psigning.secretKeyRingFile=secring.gpg -Psigning.password="${{ secrets.GPG_PASSWORD }}" -Psigning.keyId=${{ secrets.GPG_KEY_ID }}

- name: Upload test reports
if: always()
Expand Down

0 comments on commit b112082

Please sign in to comment.