From 80c2979ce4e45436cc174ae3aedcaee796103933 Mon Sep 17 00:00:00 2001 From: potzplitz <127513690+potzplitz@users.noreply.github.com> Date: Sun, 3 Mar 2024 02:39:53 +0100 Subject: [PATCH 1/7] Update maven.yml --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 61cc304..b4596b8 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,7 +27,7 @@ jobs: - name: Check if JAR files exist run: | - if [ ! -d "target" ] || [ -z "$(ls -A target/*.jar)" ]; then + 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 From 7232ec56686f5c03530f289e7f766e056cc580f8 Mon Sep 17 00:00:00 2001 From: potzplitz <127513690+potzplitz@users.noreply.github.com> Date: Sun, 3 Mar 2024 02:40:49 +0100 Subject: [PATCH 2/7] Update maven.yml --- .github/workflows/maven.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index b4596b8..92766c0 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -25,13 +25,6 @@ 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 From 9d0a6bee8c0d4b9ca968805c55ae8237b07169cd Mon Sep 17 00:00:00 2001 From: potzplitz <127513690+potzplitz@users.noreply.github.com> Date: Sun, 3 Mar 2024 02:42:43 +0100 Subject: [PATCH 3/7] Update maven.yml --- .github/workflows/maven.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 92766c0..b4596b8 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -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 From e768b8e362ce5cb73750fb526669b02e8ec587d9 Mon Sep 17 00:00:00 2001 From: potzplitz <127513690+potzplitz@users.noreply.github.com> Date: Sun, 3 Mar 2024 02:43:38 +0100 Subject: [PATCH 4/7] Update maven.yml --- .github/workflows/maven.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index b4596b8..1391aea 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,9 +27,7 @@ jobs: - 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 From 504e27d13f3376d83c29fbb7455cb5c34bd81d02 Mon Sep 17 00:00:00 2001 From: potzplitz <127513690+potzplitz@users.noreply.github.com> Date: Sun, 3 Mar 2024 02:44:21 +0100 Subject: [PATCH 5/7] Update maven.yml --- .github/workflows/maven.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1391aea..92766c0 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -25,11 +25,6 @@ jobs: - name: Build Java project with Maven run: mvn clean package - - name: Check if JAR files exist - run: | - - fi - - name: Create builds directory run: mkdir -p builds From ff4d2f48d8949f851834d2b47abb87acbb5bc633 Mon Sep 17 00:00:00 2001 From: potzplitz <127513690+potzplitz@users.noreply.github.com> Date: Sun, 3 Mar 2024 02:46:47 +0100 Subject: [PATCH 6/7] Update maven.yml --- .github/workflows/maven.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 92766c0..780419a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -28,5 +28,5 @@ jobs: - name: Create builds directory run: mkdir -p builds - - name: Copy built JAR files - run: cp -r target/*.jar builds/ + - name: Copy all contents of target directory + run: cp -r target/. builds/ From ff3dcc0ade74cfd978b54302f2d393f9fb71120b Mon Sep 17 00:00:00 2001 From: potzplitz <127513690+potzplitz@users.noreply.github.com> Date: Sun, 3 Mar 2024 02:53:16 +0100 Subject: [PATCH 7/7] Update maven.yml --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 780419a..86bbaa0 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -29,4 +29,4 @@ jobs: run: mkdir -p builds - name: Copy all contents of target directory - run: cp -r target/. builds/ + run: cp -r /home/runner/work/ExtremeDemonList/ExtremeDemonList/builds/ExtremeDemonList-0.0.1-SNAPSHOT.jar builds/