Skip to content

Commit

Permalink
Update buildOnRelease.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyah authored Feb 4, 2026
1 parent 1204a9c commit d1602f4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/buildOnRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ jobs:
cache: maven

- run: mvn clean package

- name: Set versioned JAR name
run: echo "JAR_NAME=APPLICATION-${GITHUB_REF#refs/tags/}.jar" >> $GITHUB_ENV
shell: pwsh
run: |
$tag = "${{ github.ref_name }}"
echo "JAR_NAME=APPLICATION-$tag.jar" >> $env:GITHUB_ENV
- name: Rename JAR
shell: pwsh
run: mv target/*.jar $env:JAR_NAME

- uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit d1602f4

Please sign in to comment.