diff --git a/.github/workflows/maven-cli.yml b/.github/workflows/maven-cli.yml index 654fd13..69a1877 100644 --- a/.github/workflows/maven-cli.yml +++ b/.github/workflows/maven-cli.yml @@ -26,6 +26,14 @@ jobs: run: | cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import gpg --list-secret-keys --keyid-format LONG + + - name: 'Get Version from tag' + uses: olegtarasov/get-tag@v2.1.2 + id: tagName + with: + tagRegex: "v(.*)" + tagRegexGroup: 1 + - id: build_jar name: Build JARs env: @@ -37,6 +45,7 @@ jobs: --no-transfer-progress \ --batch-mode -Pcli-build \ clean package + - name: 'Get Version Number' env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true @@ -70,8 +79,8 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: upload_url: ${{steps.create_release.outputs.upload_url}} - asset_path: 'quarkus-app/target/openepcis-event-hash-generator-service.jar' - asset_name: 'openepcis-event-hash-generator-service.jar' + asset_path: 'quarkus-app/target/openepcis-event-hash-generator-service-runner.jar' + asset_name: 'openepcis-event-hash-generator-service-${{env.GIT_TAG_NAME}}.jar' asset_content_type: application/java-archive - name: 'Upload Release CLI Asset' if: contains(github.ref, 'v') @@ -82,7 +91,7 @@ jobs: with: upload_url: ${{steps.create_release.outputs.upload_url}} asset_path: 'cli/target/openepcis-event-hash-generator-cli-${{env.VERSION}}-jar-with-dependencies.jar' - asset_name: 'openepcis-event-hash-generator-cli.jar' + asset_name: 'openepcis-event-hash-generator-cli-${{env.GIT_TAG_NAME}}.jar' asset_content_type: application/java-archive - name: 'Write Upload URL To File' if: contains(github.ref, 'v') diff --git a/quarkus-app/src/main/resources/application.yml b/quarkus-app/src/main/resources/application.yml index 977c6a7..a4c32d4 100644 --- a/quarkus-app/src/main/resources/application.yml +++ b/quarkus-app/src/main/resources/application.yml @@ -39,6 +39,8 @@ quarkus: banner: path: "openepcis-banner.txt" + package: + type: "uber-jar" mp: openapi: