Update .forgejo/workflows/action.yml

Signed-off-by: moonleay <account@moonleay.net>
This commit is contained in:
moonleay 2023-08-12 14:02:50 +02:00
parent 619be85353
commit 08b6601663

View file

@ -5,17 +5,15 @@ jobs:
container: container:
image: gradle image: gradle
steps: steps:
- name: Checkout code - name: Checkout project sources
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Build and Package JAR with Gradle - name: Setup Gradle
uses: docker://gradle:latest # Use the official Gradle Docker image uses: gradle/gradle-build-action@v2
with:
args: shadowJar
- name: Clean Caches - name: Clean Caches
run: | run: |
rm -f .gradle/caches/modules-2/modules-2.lock rm -f .gradle/caches/modules-2/modules-2.lock
rm -fr .gradle/caches/*/plugin-resolution/ rm -fr .gradle/caches/*/plugin-resolution/
- name: Run shadowJar - name: Run shadowJar
run: gradle shadowJar run: ./gradle shadowJar
- name: Run publish - name: Run publish
run: gradle publish run: ./gradle publish