You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.4 KiB
60 lines
1.4 KiB
2 years ago
|
name: Publish binaries
|
||
5 years ago
|
|
||
|
on:
|
||
|
push:
|
||
|
tags:
|
||
|
- v1.*
|
||
|
- v1.*.*
|
||
|
|
||
2 years ago
|
permissions:
|
||
|
contents: write
|
||
|
|
||
2 years ago
|
# Required to make env var work on Windows
|
||
|
defaults:
|
||
|
run:
|
||
|
shell: bash
|
||
|
|
||
5 years ago
|
jobs:
|
||
|
build:
|
||
2 years ago
|
strategy:
|
||
|
matrix:
|
||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||
|
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
|
||
5 years ago
|
steps:
|
||
2 years ago
|
- uses: actions/checkout@v3
|
||
|
|
||
2 years ago
|
- name: Set up JDK 17
|
||
2 years ago
|
uses: actions/setup-java@v3
|
||
5 years ago
|
with:
|
||
2 years ago
|
distribution: 'temurin'
|
||
|
java-version: '17'
|
||
|
#cache: 'gradle'
|
||
2 years ago
|
|
||
5 years ago
|
- name: Build with Gradle
|
||
|
run: ./gradlew jpackageZip
|
||
2 years ago
|
|
||
|
- 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'
|
||
|
|
||
2 years ago
|
- name: Rename jpackage zip
|
||
2 years ago
|
run: mv ./build/distributions/openrndr-application.zip ./build/distributions/openrndr-application-${{env.OR_TARGET_NAME}}.zip
|
||
|
|
||
5 years ago
|
- name: Create Release
|
||
2 years ago
|
uses: ncipollo/[email protected]
|
||
5 years ago
|
id: create_release
|
||
|
with:
|
||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||
|
allowUpdates: true
|
||
2 years ago
|
replacesArtifacts: false
|
||
5 years ago
|
body: Fully automated release
|
||
2 years ago
|
artifacts: "./build/distributions/openrndr-application-${{env.OR_TARGET_NAME}}.zip"
|
||
|
|