diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 01cd14e..5a3004e 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -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 @@ -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 ] diff --git a/publish.yml b/publish.yml new file mode 100644 index 0000000..606b9fa --- /dev/null +++ b/publish.yml @@ -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