lilJudd/.forgejo/workflows/build.yml

23 lines
634 B
YAML
Raw Normal View History

on: [ push ]
jobs:
build_and_publish:
runs-on: docker
container:
image: gradle
uses:
steps:
- name: Checkout project sources
uses: DiscordBots/liljudd/actions/checkout@v2
- name: Export Gradle User Home
uses: export GRADLE_USER_HOME=`pwd`/.gradle
- name: Clean Caches
run: |
rm -f .gradle/caches/modules-2/modules-2.lock
rm -fr .gradle/caches/*/plugin-resolution/
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run shadowJar
run: gradle shadowJar
- name: Run publish
run: gradle publish