fix: fixed build.yml??????????
Some checks failed
/ build_and_publish (push) Failing after 2s

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

View file

@ -1,46 +1,26 @@
on: [ push ]
jobs:
build:
name: Build
build_and_publish:
runs-on: docker
container:
image: gradle
steps:
- name: Checkout code
- name: Checkout project sources
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 11
- name: Build with Gradle
- name: Clean Caches
run: |
./gradlew clean
./gradlew shadowJar
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: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
args: shadowJar publish
env:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
GRADLE_USER_HOME: ${{ github.workspace }}/.gradle
GIT_SUBMODULE_STRATEGY: recursive
working-directory: ${{ github.workspace }}
publish:
name: Publish
needs: build
runs-on: docker
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 11
- name: Publish with Gradle
run: |
./gradlew publish
env:
GRADLE_USER_HOME: ${{ github.workspace }}/.gradle
GIT_SUBMODULE_STRATEGY: recursive
working-directory: ${{ github.workspace }}