yet another versioned name attempt

This commit is contained in:
2023-04-29 23:39:49 +02:00
parent 621f0bdbfa
commit 15d4f6cf84
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -14,11 +14,11 @@ jobs:
java-version: 17
distribution: 'temurin'
- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn -B package --file pom.xml -Drevision=BlockEdit-${{ github.ref_name }}-${{ github.sha::6 }}
- name: Copy artifacts
run: mkdir staging && cp target/BlockEdit-*.jar staging
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: BlockEdit
name: BlockEdit-${GITHUB_REF}-${GITHUB_SHA::6}
path: staging
+2 -1
View File
@@ -6,7 +6,7 @@
<groupId>me.youhavetrouble</groupId>
<artifactId>BlockEdit</artifactId>
<version>1.0-SNAPSHOT</version>
<version>${revision}</version>
<packaging>jar</packaging>
<name>BlockEdit</name>
@@ -15,6 +15,7 @@
<properties>
<java.version>16</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>1.0-SNAPSHOT</revision>
</properties>
<url>youhavetrouble.me</url>