From 6067242673e6f009eeb5a5063d87963c8e42a4e5 Mon Sep 17 00:00:00 2001 From: gmuth Date: Fri, 24 Mar 2023 00:03:38 +0100 Subject: [PATCH] update acition --- .github/workflows/publish.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 926bf32b..b4004565 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,21 +16,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/checkout@v3 + - name: Setup JDK 11 + uses: actions/setup-java@v3 with: + distribution: corretto java-version: 11 - - name: Setup build cache - uses: actions/cache@v2 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} - restore-keys: | - ${{ runner.os }}-gradle- - name: Gradle build - run: gradle build + uses: gradle/gradle-build-action@v2 + with: + arguments: build - name: Gradle publish env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - run: gradle publish + run: gradle -Drepo=github publish