From abc31bf227cc3789f53bc01187742a4488eab1d8 Mon Sep 17 00:00:00 2001 From: Raphael Vullriede Date: Mon, 9 Sep 2024 10:23:08 +0200 Subject: [PATCH] build images --- .github/workflows/publish-on-release.yml | 16 ++--- pom.xml | 75 ++++++++++++++++++------ 2 files changed, 62 insertions(+), 29 deletions(-) diff --git a/.github/workflows/publish-on-release.yml b/.github/workflows/publish-on-release.yml index 307dca6..ce8a2d6 100644 --- a/.github/workflows/publish-on-release.yml +++ b/.github/workflows/publish-on-release.yml @@ -22,16 +22,10 @@ jobs: distribution: 'temurin' cache: 'maven' - name: build-and-package - run: mvn -Pnative-jpackage clean package jpackage:jpackage + run: mvn -Pnative-jpackage clean verify - - name: get-cpu-architecture - shell: bash - run: | - ARCH=$(uname -m) - echo "CPU_ARCHITECTURE=$ARCH" >> $GITHUB_ENV - - - name: build-and-package - uses: actions/upload-artifact@v4 + - name: upload-to-release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') with: - name: log-gazer-${{ env.CPU_ARCHITECTURE }} - path: target/dist/* \ No newline at end of file + files: dist/* \ No newline at end of file diff --git a/pom.xml b/pom.xml index d78058e..ae72afc 100644 --- a/pom.xml +++ b/pom.xml @@ -105,24 +105,6 @@ - - native-jpackage - - - - org.panteleyev - jpackage-maven-plugin - ${jpackage.maven.plugin.version} - - ${project.build.directory}/dist - ${project.build.directory} - ${project.artifactId}-${project.version}.jar - ${mainClass} - - - - - win @@ -187,6 +169,63 @@ + + native-jpackage + + + + org.panteleyev + jpackage-maven-plugin + ${jpackage.maven.plugin.version} + + ${project.build.directory}/dist + ${project.build.directory} + ${project.artifactId}-${project.version}.jar + ${mainClass} + + + + package + + jpackage + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 3.1.0 + + + rename-artifact + verify + + run + + + + + + + + + + + + + + + + + + + + + + + +