fix(action): restruce asset upload workflow and fix asset path (#519)

master
Tobias Nett 2020-03-21 21:00:19 +01:00 committed by GitHub
parent 7713ecbe1d
commit 4e403baa25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -21,10 +21,8 @@ jobs:
with:
java-version: 1.8
java-package: jdk+fx
- name: Download JREs
run: ./gradlew downloadJreAll
- name: Bundle all distribution packages
run: ./gradlew createRelease
- name: Bundle distribution for ${{ matrix.platform }}
run: ./gradlew -Prelease.useLastTag=true ${{ matrix.platform }}DistZip
- name: Upload bundle for ${{ matrix.platform }}
uses: actions/upload-release-asset@v1
env:
@ -33,6 +31,6 @@ jobs:
# This pulls from the RELEASE event this workflow was triggered by.
# See https://developer.github.com/v3/activity/events/types/#releaseevent
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/distributions/TerasologyLauncher-${{ matrix.platform }}.zip
asset_path: ./build/distributions/TerasologyLauncher-${{ matrix.platform }}-${{ github.event.release.name }}.zip
asset_name: TerasologyLauncher-${{ matrix.platform }}.zip
asset_content_type: application/zip