Skip to content

Workaround for JBR JDK used by Compose Desktop Gradle Plugin (#62) #3

Workaround for JBR JDK used by Compose Desktop Gradle Plugin (#62)

Workaround for JBR JDK used by Compose Desktop Gradle Plugin (#62) #3

Workflow file for this run

name: Release
on:
push:
tags:
- '**'
jobs:
build:
strategy:
matrix:
# macos-12 is for the x64 (intel) architecture
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
os: [ macos-12, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# TODO: replace this once https://github.com/actions/setup-java/pull/637 gets merged.
- uses: gmitch215/setup-java@99fc2135f7f7b08068e180cb5f29340f9de70720
with:
distribution: 'jetbrains'
java-version: 17
- uses: gradle/actions/setup-gradle@v3
- run: ./gradlew build
- uses: actions/upload-artifact@v4
with:
name: distribution-${{ matrix.os }}
if-no-files-found: error
path: |
build/compose/binaries/main-release/dmg/kotlin-explorer-*.dmg
release:
runs-on: ubuntu-latest
if: github.repository_owner == 'romainguy'
needs: build
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Create release and upload dists
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref_name }}" **/*.dmg -t "${{ github.ref_name }}" --generate-notes