2023-08-04 19:17:15 +00:00
|
|
|
on: [ push ]
|
|
|
|
jobs:
|
2023-08-05 00:00:07 +00:00
|
|
|
build_and_publish:
|
2023-08-04 23:57:02 +00:00
|
|
|
runs-on: docker
|
2023-08-05 00:00:07 +00:00
|
|
|
container:
|
|
|
|
image: gradle
|
2023-08-05 00:17:47 +00:00
|
|
|
uses:
|
2023-08-04 19:17:15 +00:00
|
|
|
steps:
|
2023-08-05 00:17:47 +00:00
|
|
|
- name: Checkout project sources
|
2023-08-05 00:20:17 +00:00
|
|
|
uses: DiscordBots/liljudd/actions/checkout@v2
|
2023-08-05 00:17:47 +00:00
|
|
|
- name: Export Gradle User Home
|
|
|
|
uses: export GRADLE_USER_HOME=`pwd`/.gradle
|
2023-08-05 00:00:07 +00:00
|
|
|
- name: Clean Caches
|
2023-08-04 19:17:15 +00:00
|
|
|
run: |
|
2023-08-05 00:15:48 +00:00
|
|
|
rm -f .gradle/caches/modules-2/modules-2.lock
|
2023-08-05 00:00:07 +00:00
|
|
|
rm -fr .gradle/caches/*/plugin-resolution/
|
|
|
|
- name: Setup Gradle
|
|
|
|
uses: gradle/gradle-build-action@v2
|
2023-08-05 00:15:48 +00:00
|
|
|
- name: Run shadowJar
|
|
|
|
run: gradle shadowJar
|
|
|
|
- name: Run publish
|
|
|
|
run: gradle publish
|