Skip to content

Commit

Permalink
fix(action): restruce asset upload workflow and fix asset path (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
skaldarnar authored Mar 21, 2020
1 parent 7713ecb commit 4e403ba
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/asset-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 4e403ba

Please sign in to comment.