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