Skip to content

Commit

Permalink
action?
Browse files Browse the repository at this point in the history
  • Loading branch information
phuchptty committed Jan 2, 2023
1 parent 821129b commit b4d44af
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Get tag name
run: echo "The tag name is ${{ github.ref | replace('refs/tags/', '') }}"
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Checkout
uses: actions/checkout@v3
Expand All @@ -29,4 +30,4 @@ jobs:
- name: Upload Release
uses: ncipollo/release-action@v1
with:
artifacts: "target/WindSurf-${{ github.ref | replace('refs/tags/', '') }}-SNAPSHOT.jar"
artifacts: "target/WindSurf-${{ steps.get_version.outputs.VERSION }}-SNAPSHOT.jar"

0 comments on commit b4d44af

Please sign in to comment.