🔖 v2.5.0-alpha #63
Workflow file for this run
This file contains hidden or 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 | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| jobs: | |
| build-android: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - name: Checkout LFS objects | |
| run: git lfs checkout | |
| - name: set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Extract Android Keystore | |
| run: echo "$ks" | base64 -d > androidApp/keystore_android | |
| env: | |
| ks: ${{ secrets.KEYSTORE_BASE64 }} | |
| - name: Extract Android Keystore Properties | |
| run: echo "$ksp" > keystore.properties | |
| env: | |
| ksp: ${{ secrets.KEYSTORE_PROPERTIES }} | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build with Gradle | |
| run: ./gradlew androidApp:assembleRelease | |
| - name: Upload the Artifact | |
| uses: actions/upload-artifact@v4.5.0 | |
| with: | |
| name: android-apk | |
| path: androidApp/build/outputs/apk/release/*.apk | |
| build-desktop-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - name: Checkout LFS objects | |
| run: git lfs checkout | |
| - name: set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build with Gradle | |
| run: ./gradlew desktopApp:packageReleaseDistributionForCurrentOS | |
| - name: Upload the Artifact | |
| uses: actions/upload-artifact@v4.5.0 | |
| with: | |
| name: debian-deb | |
| path: desktopApp/build/compose/binaries/main-release/deb/*.deb | |
| build-desktop-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - name: Checkout LFS objects | |
| run: git lfs checkout | |
| - name: set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build with Gradle | |
| run: ./gradlew desktopApp:packageReleaseDistributionForCurrentOS | |
| - name: Upload the Artifact | |
| uses: actions/upload-artifact@v4.5.0 | |
| with: | |
| name: macos-dmg | |
| path: desktopApp/build/compose/binaries/main-release/dmg/*.dmg | |
| build-desktop-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - name: Checkout LFS objects | |
| run: git lfs checkout | |
| - name: set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build with Gradle | |
| run: ./gradlew desktopApp:packageReleaseDistributionForCurrentOS | |
| - name: Upload the Artifact | |
| uses: actions/upload-artifact@v4.5.0 | |
| with: | |
| name: windows-msi | |
| path: desktopApp/build/compose/binaries/main-release/msi/*.msi | |
| publish: | |
| name: Publish Release | |
| needs: [ build-android, build-desktop-linux, build-desktop-macos, build-desktop-windows ] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download Build Artifacts | |
| uses: actions/download-artifact@v4.1.8 | |
| with: | |
| path: artifacts | |
| - name: Publish release | |
| uses: ghalactic/github-release-from-tag@v5 | |
| with: | |
| assets: | | |
| - path: ${{ github.workspace }}/artifacts/* |