try fixing version problem in release action

This commit is contained in:
f43nd1r 2019-11-16 04:56:55 +01:00
parent ee816ee1ae
commit 0caab35186
2 changed files with 7 additions and 4 deletions

View file

@ -16,7 +16,10 @@ jobs:
with:
java-version: '1.13'
- name: Build release
run: mvn -B clean package
run: ./mvnw -B clean package
- name: Extract version
id: version
run: echo ::set-output ./mvnw org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev '(^\[|Download\w+:)'
- name: Create Release
id: create_release
uses: actions/create-release@v1
@ -34,6 +37,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./acrarium/target/acrarium-${{ github.ref }}.war
asset_name: acrarium-${{ github.ref }}.war
asset_path: ./acrarium/target/acrarium-${{ steps.version.output }}.war
asset_name: acrarium-${{ steps.version.output }}.war
asset_content_type: application/zip

View file

@ -16,4 +16,4 @@ jobs:
with:
java-version: ${{ matrix.java }}
- name: Maven tests on Java ${{ matrix.java }}
run: mvn -B test
run: ./mvnw -B test