From fb0665786ba6bee67f99361732e83e2f550f8663 Mon Sep 17 00:00:00 2001 From: youhavetrouble Date: Sat, 29 Apr 2023 23:16:45 +0200 Subject: [PATCH] test out branch name and commit hash as artifact name --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a7c468..fd338c1 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 -Djar.finalName=BlockEdit-${GITHUB_REF}-${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