From fa572030da1a67a3eb0b02ecc7ec17996675915b Mon Sep 17 00:00:00 2001 From: RatzzFatzz Date: Tue, 16 Dec 2025 23:11:35 +0100 Subject: [PATCH] Fix passing version to maven in workflow --- .github/workflows/release.yml | 6 +++--- pom.xml | 2 +- src/deb/control/control | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a0060ba..05d9c55 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: - name: Build with Maven run: | - mvn clean package --file pom.xml -P portable -Drevision=${{ steps.get_version.outputs.VERSION }} + mvn clean package --file pom.xml -P portable -Drevision="${{ steps.get_version.outputs.VERSION }}" cp target/M*.{zip,tar} artifacts/ - name: Upload artifacts @@ -88,7 +88,7 @@ jobs: - name: Build with Maven run: | - mvn clean package --file pom.xml -P linux -Drevision=${{ steps.get_version.outputs.VERSION }} + mvn clean package --file pom.xml -P debian -Drevision="${{ steps.get_version.outputs.VERSION }}" cp target/M*.deb artifacts/ - name: Upload artifacts @@ -135,7 +135,7 @@ jobs: run: mkdir artifacts - name: Build with Maven - run: mvn clean package --file pom.xml -P windows -Drevision=${{ steps.get_version.outputs.VERSION }} + run: mvn clean package --file pom.xml -P windows -Drevision="${{ steps.get_version.outputs.VERSION }}" - name: Upload artifacts uses: AButler/upload-release-assets@v3.0 diff --git a/pom.xml b/pom.xml index 72f7149..a0da364 100644 --- a/pom.xml +++ b/pom.xml @@ -147,7 +147,7 @@ - linux + debian diff --git a/src/deb/control/control b/src/deb/control/control index 2c892f9..bf5f0d0 100644 --- a/src/deb/control/control +++ b/src/deb/control/control @@ -1,5 +1,5 @@ -Package: ${project.artifactId} -Version: ${project.version} +Package: [[artifactId]] +Version: [[version]] Section: misc Priority: optional Architecture: all