From c4233a7b6b3bd4ec667bfc8dc4f1ebc85e747dd8 Mon Sep 17 00:00:00 2001 From: moonleay Date: Sat, 5 Aug 2023 19:04:47 +0200 Subject: [PATCH] fix> update ci Signed-off-by: moonleay --- .forgejo/workflows/action.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/action.yml b/.forgejo/workflows/action.yml index 43f3b5a..dc16848 100644 --- a/.forgejo/workflows/action.yml +++ b/.forgejo/workflows/action.yml @@ -5,12 +5,17 @@ jobs: container: image: gradle steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Clean Caches - run: | - rm -f .gradle/caches/modules-2/modules-2.lock - rm -fr .gradle/caches/*/plugin-resolution/ + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Build and Package JAR with Gradle + uses: docker://gradle:latest # Use the official Gradle Docker image + with: + args: shadowJar + - name: Clean Caches + run: | + rm -f .gradle/caches/modules-2/modules-2.lock + rm -fr .gradle/caches/*/plugin-resolution/ - name: Run shadowJar run: gradle shadowJar - name: Run publish