Fix passing version to maven in workflow

This commit is contained in:
RatzzFatzz
2025-12-16 23:11:35 +01:00
parent cc23d8c5bc
commit fa572030da
3 changed files with 6 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ jobs:
- name: Build with Maven - name: Build with Maven
run: | 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/ cp target/M*.{zip,tar} artifacts/
- name: Upload artifacts - name: Upload artifacts
@@ -88,7 +88,7 @@ jobs:
- name: Build with Maven - name: Build with Maven
run: | 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/ cp target/M*.deb artifacts/
- name: Upload artifacts - name: Upload artifacts
@@ -135,7 +135,7 @@ jobs:
run: mkdir artifacts run: mkdir artifacts
- name: Build with Maven - 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 - name: Upload artifacts
uses: AButler/upload-release-assets@v3.0 uses: AButler/upload-release-assets@v3.0

View File

@@ -147,7 +147,7 @@
</build> </build>
</profile> </profile>
<profile> <profile>
<id>linux</id> <id>debian</id>
<build> <build>
<resources> <resources>
<resource> <resource>

View File

@@ -1,5 +1,5 @@
Package: ${project.artifactId} Package: [[artifactId]]
Version: ${project.version} Version: [[version]]
Section: misc Section: misc
Priority: optional Priority: optional
Architecture: all Architecture: all