Abe Pazos
2 years ago
committed by
Edwin Jakobs
3 changed files with 29 additions and 70 deletions
@ -1,33 +0,0 @@ |
|||||
name: Publish Linux/x64 binaries |
|
||||
|
|
||||
on: |
|
||||
push: |
|
||||
tags: |
|
||||
- v1.* |
|
||||
- v1.*.* |
|
||||
|
|
||||
permissions: |
|
||||
contents: write |
|
||||
|
|
||||
jobs: |
|
||||
build: |
|
||||
runs-on: ubuntu-latest |
|
||||
steps: |
|
||||
- uses: actions/checkout@v2 |
|
||||
- name: Set up JDK 17 |
|
||||
uses: actions/setup-java@v1 |
|
||||
with: |
|
||||
java-version: 17 |
|
||||
- name: Build with Gradle |
|
||||
run: ./gradlew jpackageZip |
|
||||
- name: Rename jpackage zip |
|
||||
run: mv ./build/distributions/openrndr-application.zip ./build/distributions/openrndr-application-linux-x64.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-linux-x64.zip" |
|
@ -1,33 +0,0 @@ |
|||||
name: Publish Windows binaries |
|
||||
|
|
||||
on: |
|
||||
push: |
|
||||
tags: |
|
||||
- v1.* |
|
||||
- v1.*.* |
|
||||
|
|
||||
permissions: |
|
||||
contents: write |
|
||||
|
|
||||
jobs: |
|
||||
build: |
|
||||
runs-on: windows-latest |
|
||||
steps: |
|
||||
- uses: actions/checkout@v2 |
|
||||
- name: Set up JDK 17 |
|
||||
uses: actions/setup-java@v1 |
|
||||
with: |
|
||||
java-version: 17 |
|
||||
- name: Build with Gradle |
|
||||
run: ./gradlew jpackageZip |
|
||||
- name: Rename jpackage zip |
|
||||
run: mv ./build/distributions/openrndr-application.zip ./build/distributions/openrndr-application-windows.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-windows.zip" |
|
@ -9,19 +9,43 @@ on: |
|||||
permissions: |
permissions: |
||||
contents: write |
contents: write |
||||
|
|
||||
|
# Required to make env var work on Windows |
||||
|
defaults: |
||||
|
run: |
||||
|
shell: bash |
||||
|
|
||||
jobs: |
jobs: |
||||
build: |
build: |
||||
runs-on: macos-latest |
strategy: |
||||
|
matrix: |
||||
|
os: [ubuntu-latest, windows-latest, macos-latest] |
||||
|
|
||||
|
runs-on: ${{ matrix.os }} |
||||
|
|
||||
steps: |
steps: |
||||
- uses: actions/checkout@v2 |
- uses: actions/checkout@v3 |
||||
|
|
||||
- name: Set up JDK 17 |
- name: Set up JDK 17 |
||||
uses: actions/setup-java@v1 |
uses: actions/setup-java@v1 |
||||
with: |
with: |
||||
java-version: 17 |
java-version: 17 |
||||
|
|
||||
- name: Build with Gradle |
- name: Build with Gradle |
||||
run: ./gradlew jpackageZip |
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 |
- name: Rename jpackage zip |
||||
run: mv ./build/distributions/openrndr-application.zip ./build/distributions/openrndr-application-macos.zip |
run: mv ./build/distributions/openrndr-application.zip ./build/distributions/openrndr-application-${{env.OR_TARGET_NAME}}.zip |
||||
|
|
||||
- name: Create Release |
- name: Create Release |
||||
uses: ncipollo/[email protected] |
uses: ncipollo/[email protected] |
||||
id: create_release |
id: create_release |
||||
@ -30,4 +54,5 @@ jobs: |
|||||
allowUpdates: true |
allowUpdates: true |
||||
replacesArtifacts: false |
replacesArtifacts: false |
||||
body: Fully automated release |
body: Fully automated release |
||||
artifacts: "./build/distributions/openrndr-application-macos.zip" |
artifacts: "./build/distributions/openrndr-application-${{env.OR_TARGET_NAME}}.zip" |
||||
|
|
Loading…
Reference in new issue