This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user