From 351ab764730c40f167830c5ba80a52ed5441f55e Mon Sep 17 00:00:00 2001 From: David Wursteisen Date: Sun, 14 Mar 2021 01:00:42 +0100 Subject: [PATCH] Update github workflow --- .github/workflows/build.yml | 4 ++++ .github/workflows/publish-release.yml | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 50a2301..c8433b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,10 @@ jobs: key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} restore-keys: | ${{ runner.os }}-gradle- + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 - name: build run: ./gradlew ktlintCheck build diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 2ac3e27..29e4072 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -19,6 +19,9 @@ jobs: key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} restore-keys: | ${{ runner.os }}-gradle- - + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 - name: Publish artifact run: ./gradlew publishAllPublicationsToSonatypeStagingRepository -Pversion="${{github.event.release.tag_name}}" -Psigning.base64.secretKey="${{secrets.SIGNING_BASE_64_SECRET_KEY}}" -Psigning.password="${{secrets.SIGNING_PASSWORD}}" -Psonatype.username="${{secrets.SONATYPE_USERNAME}}" -Psonatype.password="${{secrets.SONATYPE_PASSWORD}}"