1.19.2 #65
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Desktop Build | |
on: | |
release: | |
types: | |
- published | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: '21' | |
- name: Get Latest Release | |
id: release | |
uses: pozetroninc/github-action-get-latest-release@master | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
repository: ${{ github.repository }} | |
- name: Retrieve macOS Certificate | |
env: | |
CERTIFICATE_BASE64: ${{ secrets.MACOS_CERTIFICATE_CONVEYOR }} | |
run: | | |
echo $CERTIFICATE_BASE64 | base64 --decode > macos.cer | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
# - name: Cache Gradle and Build | |
# uses: actions/cache@v4 | |
# with: | |
# path: | | |
# ~/.gradle/caches | |
# ~/.gradle/wrapper | |
# ${{ github.workspace }}/common/build | |
# ${{ github.workspace }}/desktop/build | |
# ~/Library/Caches/Hydraulic/Conveyor | |
# key: ${{ runner.os }}-gradle-desktop | |
# restore-keys: | | |
# ${{ runner.os }}-gradle-desktop | |
- name: Build with Gradle | |
id: gradle-build | |
run: | | |
./gradlew :desktop:build | |
./gradlew --stop | |
- name: Download Conveyor | |
shell: bash | |
run: | | |
wget https://downloads.hydraulic.dev/conveyor/conveyor-15.0-mac-aarch64.zip | |
unzip conveyor-15.0-mac-aarch64.zip | |
- name: Run Conveyor | |
shell: bash | |
env: | |
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
CONVEYOR_AGREE_TO_LICENSE: 1 | |
run: | | |
PATH="$PATH:./Conveyor.app/Contents/MacOS" | |
conveyor \ | |
"-Kapp.signing-key=${{ secrets.SIGNING_KEY }}" \ | |
"-Kapp.mac.certificate=macos.cer" \ | |
"-Kapp.mac.notarization.team-id=${{ secrets.MACOS_TEAM_ID }}" \ | |
"-Kapp.mac.notarization.app-specific-password=${{ secrets.MACOS_NOTARIZATION_PASSWORD }}" \ | |
"-Kapp.mac.notarization.apple-id=${{ secrets.MACOS_NOTARIZATION_ID }}" \ | |
make site | |
- name: Upload Release Files | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: 'output/*' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: false | |
omitBodyDuringUpdate: true | |
tag: ${{ steps.release.outputs.release }} |