lilJudd/.forgejo/workflows/action.yml

23 lines
630 B
YAML
Raw Normal View History

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