diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml index 2a9913e..88ce852 100644 --- a/.github/workflows/gradle-publish.yml +++ b/.github/workflows/gradle-publish.yml @@ -4,6 +4,7 @@ name: Gradle Package on: + release: types: [created] @@ -17,14 +18,18 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 8 + + - name: Set up JDK 11 uses: actions/setup-java@v2 with: - java-version: '8' - distribution: 'zulu' + java-version: '11' + distribution: 'adopt' + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file - name: Build with Gradle - run: ./gradlew build + run: gradle build + # The USERNAME and TOKEN need to correspond to the credentials environment variables used in # the publishing section of your build.gradle