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