Skip to content

Commit 365389b

Browse files
committed
Fix release workflow
1 parent 472417e commit 365389b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ jobs:
1515
- name: Publish to GitHub Packages
1616
id: maven_publish
1717
run: |
18-
REVISION_NAME=${GIT_REF_NAME:1}
18+
TAG_NAME=${GIT_REF_NAME##*/}
19+
REVISION_NAME=${TAG_NAME:1}
1920
2021
mvn -B deploy "-Drevision=$REVISION_NAME"
2122
22-
JAR_PATH=$(ls | tail -n 1)
23+
JAR_PATH=$(ls ./target/*.jar | tail -n 1)
2324
JAR_NAME=$(basename $JAR_PATH)
2425
echo "::set-output name=jar_path::$JAR_PATH"
2526
echo "::set-output name=jar_name::$JAR_NAME"

0 commit comments

Comments
 (0)