2023-08-04 19:17:15 +00:00
|
|
|
on: [ push ]
|
|
|
|
jobs:
|
2023-08-05 00:00:07 +00:00
|
|
|
build_and_publish:
|
2023-08-05 16:54:14 +00:00
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: gradle
|
2023-08-04 19:17:15 +00:00
|
|
|
steps:
|
2023-08-05 17:04:47 +00:00
|
|
|
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/
|
2023-08-05 00:15:48 +00:00
|
|
|
- name: Run shadowJar
|
|
|
|
run: gradle shadowJar
|
|
|
|
- name: Run publish
|
|
|
|
run: gradle publish
|