test 4
Some checks failed
Maven Build / build (push) Failing after 10m34s

This commit is contained in:
rattatwinko
2025-05-09 17:40:07 +02:00
parent 2d7c942c32
commit 39c516f5dd

View File

@@ -33,6 +33,7 @@ jobs:
- name: Debug Info - name: Debug Info
run: | run: |
echo "Current workspace directory: $GITHUB_WORKSPACE"
echo "Current directory: $(pwd)" echo "Current directory: $(pwd)"
echo "Project structure:" echo "Project structure:"
find . -type f -name "*.kt" | sort find . -type f -name "*.kt" | sort
@@ -41,17 +42,14 @@ jobs:
- name: Build MOTD (MOTD) - name: Build MOTD (MOTD)
run: | run: |
echo "Building MOTD from pom.xml" echo "Building MOTD"
echo "Current directory: $(pwd)" echo "Current directory: $(pwd)"
# Navigate to the POM directory # Run Maven build directly using the POM file path
cd mvn -B clean package -f "$GITHUB_WORKSPACE/pom.xml" -Dmaven.compiler.failOnError=true
echo "Changed to directory: $(pwd)"
# Run Maven build
mvn -B clean package -Dmaven.compiler.failOnError=true
- name: Upload MOTD artifact - name: Upload MOTD artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: MOTD name: MOTD
path: /target/MOTD-*.jar path: target/MOTD-*.jar
if-no-files-found: error if-no-files-found: error