From 4e403baa25677c940c94f85ce939045636688037 Mon Sep 17 00:00:00 2001 From: Tobias Nett Date: Sat, 21 Mar 2020 21:00:19 +0100 Subject: [PATCH] fix(action): restruce asset upload workflow and fix asset path (#519) --- .github/workflows/asset-upload.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/asset-upload.yml b/.github/workflows/asset-upload.yml index 151e4fc59..04b3c0c12 100644 --- a/.github/workflows/asset-upload.yml +++ b/.github/workflows/asset-upload.yml @@ -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