From 15d4f6cf8460920933a0da130b9458814d6ebfbc Mon Sep 17 00:00:00 2001 From: youhavetrouble Date: Sat, 29 Apr 2023 23:39:49 +0200 Subject: [PATCH] yet another versioned name attempt --- .github/workflows/build.yml | 4 ++-- pom.xml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a7c468..e1565e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 0db9d33..47f8213 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ me.youhavetrouble BlockEdit - 1.0-SNAPSHOT + ${revision} jar BlockEdit @@ -15,6 +15,7 @@ 16 UTF-8 + 1.0-SNAPSHOT youhavetrouble.me