From 365389b415ab7b6d56bff4e6ceb79fd01927435b Mon Sep 17 00:00:00 2001 From: Adrien Prokopowicz Date: Wed, 11 Nov 2020 13:43:02 +0100 Subject: [PATCH] Fix release workflow --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 03cbaf22..341d603c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,11 +15,12 @@ jobs: - name: Publish to GitHub Packages id: maven_publish run: | - REVISION_NAME=${GIT_REF_NAME:1} + TAG_NAME=${GIT_REF_NAME##*/} + REVISION_NAME=${TAG_NAME:1} mvn -B deploy "-Drevision=$REVISION_NAME" - JAR_PATH=$(ls | tail -n 1) + JAR_PATH=$(ls ./target/*.jar | tail -n 1) JAR_NAME=$(basename $JAR_PATH) echo "::set-output name=jar_path::$JAR_PATH" echo "::set-output name=jar_name::$JAR_NAME"