forked from DiscordBots/lilJudd
fix: fixed build.yml
Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
4ae3b0052b
commit
0c363391ba
2 changed files with 22 additions and 15 deletions
22
.forgejo/workflows/action.yml
Normal file
22
.forgejo/workflows/action.yml
Normal 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
|
|
@ -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
|
|
Loading…
Reference in a new issue