generated from openrndr/openrndr-template
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (45 loc) · 1.41 KB
/
publish-binaries.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Publish binaries
on:
push:
tags:
- v1.*
- v1.*.*
permissions:
contents: write
# Required to make env var work on Windows
defaults:
run:
shell: bash
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
#cache: 'gradle'
- name: Build with Gradle
run: ./gradlew jpackageZip
- run: echo "OR_TARGET_NAME=linux-x64" >> $GITHUB_ENV
if: matrix.os == 'ubuntu-latest'
- run: echo "OR_TARGET_NAME=macos" >> $GITHUB_ENV
if: matrix.os == 'macos-latest'
- run: echo "OR_TARGET_NAME=windows" >> $GITHUB_ENV
if: matrix.os == 'windows-latest'
- name: Rename jpackage zip
run: mv ./build/distributions/openrndr-application.zip ./build/distributions/openrndr-application-${{env.OR_TARGET_NAME}}.zip
- name: Create Release
uses: ncipollo/[email protected]
id: create_release
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: false
body: Fully automated release
artifacts: "./build/distributions/openrndr-application-${{env.OR_TARGET_NAME}}.zip"