Update maven.yml

This commit is contained in:
potzplitz 2024-03-03 02:42:43 +01:00 committed by GitHub
parent 7232ec5668
commit 9d0a6bee8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,6 +25,13 @@ jobs:
- name: Build Java project with Maven
run: mvn clean package
- name: Check if JAR files exist
run: |
if ! [ -d "target" ] || ! [ "$(ls -A target/*.jar 2>/dev/null)" ]; then
echo "No JAR files found in target directory or target directory does not exist."
exit 1
fi
- name: Create builds directory
run: mkdir -p builds