Update maven.yml
This commit is contained in:
parent
cd159f5374
commit
3790ad0c81
1 changed files with 7 additions and 1 deletions
8
.github/workflows/maven.yml
vendored
8
.github/workflows/maven.yml
vendored
|
@ -50,6 +50,12 @@ jobs:
|
|||
draft: false
|
||||
prerelease: false
|
||||
|
||||
- name: Find Jar file
|
||||
id: find_jar
|
||||
run: |
|
||||
jar_path=$(find target -name '*.jar' -type f)
|
||||
echo "::set-output name=jar_path::$jar_path"
|
||||
|
||||
- name: Upload Jar as Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
|
@ -57,6 +63,6 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: builds
|
||||
asset_path: ${{ steps.find_jar.outputs.jar_path }}
|
||||
asset_name: my-java-app.jar
|
||||
asset_content_type: application/java-archive
|
||||
|
|
Loading…
Reference in a new issue