add github action #1
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: Build and Release MacOS | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build-and-release: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: '11' | |
- name: Build Compose Desktop | |
run: | | |
./gradlew packageDistributionForCurrentOS | |
- name: Upload to Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: 'build/compose/binaries/main/dmg/*.dmg' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |