try fixing version problem in release action
This commit is contained in:
parent
ee816ee1ae
commit
0caab35186
2 changed files with 7 additions and 4 deletions
9
.github/workflows/release-build.yml
vendored
9
.github/workflows/release-build.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue