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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+