lilJudd/.forgejo/workflows/action.yml
Workflow config file is invalid. Please check your config file: yaml: line 7: did not find expected key
moonleay 0c363391ba
fix: fixed build.yml
Signed-off-by: moonleay <contact@moonleay.net>
2023-12-09 16:11:50 +01:00

22 lines
630 B
YAML

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