fix: fixed build.yml???????????

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2023-08-05 02:15:48 +02:00
parent f3497f9a2b
commit 02d95b7d12

View file

@ -4,23 +4,19 @@ jobs:
runs-on: docker
container:
image: gradle
uses: git.moonleay.net/DiscordBots/liljudd/actions/checkout@v3
steps:
- name: Checkout project sources
uses: actions/checkout@v2
- name: Clean Caches
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/
- name: Setup Gradle User Home
run: export GRADLE_USER_HOME=`pwd`/.gradle
- name: Export Gradle User Home
uses: export GRADLE_USER_HOME=`pwd`/.gradle
- name: Checkout project sources
uses: actions/checkout@v3
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
args: shadowJar publish
env:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
GIT_SUBMODULE_STRATEGY: recursive
working-directory: ${{ github.workspace }}
- name: Run shadowJar
run: gradle shadowJar
- name: Run publish
run: gradle publish