Skip to content

Commit

Permalink
Updated build JDKs and sonar token
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Reinhart <[email protected]>
  • Loading branch information
reinhapa committed Dec 8, 2023
1 parent 00ef584 commit 3f8c8c2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
jdk: ['11', '17', '18']
jdk: ['11', '17', '21']
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
Expand All @@ -33,7 +33,8 @@ jobs:
if: ${{ matrix.jdk == '17' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
run: ./gradlew sonarqube -PsonarToken=${{ secrets.SONAR_TOKEN }}
ORG_GRADLE_PROJECT_sonarToken: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew sonar
deploy:
if: ${{ github.event_name != 'pull_request' }}
needs: [ build ]
Expand Down
27 changes: 27 additions & 0 deletions publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow will publish the artifacts based

name: Publish

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: '11'
- name: Deploy
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_PASSWORD }}
run: ./gradlew publish --no-daemon -x test

0 comments on commit 3f8c8c2

Please sign in to comment.