fix: fixed build.yml

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2023-08-04 21:17:52 +02:00
parent 4ae3b0052b
commit 0c363391ba
Signed by: moonleay
GPG key ID: 82667543CCD715FB
2 changed files with 22 additions and 15 deletions

View file

@ -0,0 +1,22 @@
on: [ push ]
jobs:
build_and_publish:
runs-on: docker
container:
image: gradle
steps:
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
run: gradle publish

View file

@ -1,15 +0,0 @@
on: [ push ]
jobs:
build_and_publish:
runs-on: gradle
steps:
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Clean Caches
run: |
rm -f .gradle/caches/modules-2/modules-2.lock
rm -fr .gradle/caches/*/plugin-resolution/
- name: Run shadowJar
run: ./gradlew shadowJar
- name: Run publish
run: ./gradlew publish