-
Notifications
You must be signed in to change notification settings - Fork 75
36 lines (34 loc) · 1.21 KB
/
asset-upload.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
on:
release:
types:
- published
name: Asset Upload
jobs:
build:
name: Build and upload release assets
runs-on: ubuntu-latest
strategy:
matrix:
platform: [linux64, mac, windows64]
fail-fast: true
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
java-package: jdk
- 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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# 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 }}-${{ github.event.release.name }}.zip
asset_name: TerasologyLauncher-${{ matrix.platform }}.zip
asset_content_type: application/zip