2021-09-26 00:45:21 +02:00
|
|
|
name: Build Release Binaries
|
2021-09-05 17:37:57 +02:00
|
|
|
|
2021-09-05 16:49:55 +02:00
|
|
|
on:
|
2021-09-26 00:45:21 +02:00
|
|
|
[ workflow_dispatch ]
|
2021-09-05 16:49:55 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
create-linux-package:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Create Deb Package
|
|
|
|
steps:
|
|
|
|
# Setup Java environment for the next steps
|
|
|
|
- name: Setup Java
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 15
|
|
|
|
|
|
|
|
# Check out current repository
|
|
|
|
- name: Fetch Sources
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
|
2021-09-05 17:34:25 +02:00
|
|
|
# Build Desktop Uber Jar application
|
|
|
|
- name: Desktop Uber Jar
|
2021-09-05 16:49:55 +02:00
|
|
|
run: ./gradlew :desktop:packageUberJarForCurrentOS
|
|
|
|
|
2021-09-05 17:34:25 +02:00
|
|
|
# Build Desktop Packaged application
|
|
|
|
- name: Desktop App Package
|
|
|
|
run: ./gradlew :desktop:packageDeb
|
|
|
|
|
|
|
|
# Create a Draft Release
|
|
|
|
- name: Draft Release
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
with:
|
|
|
|
draft: true
|
2021-09-26 00:45:21 +02:00
|
|
|
allowUpdates: true
|
2021-09-26 10:56:03 +02:00
|
|
|
tag: "v3.3.2"
|
2021-09-05 17:34:25 +02:00
|
|
|
artifacts: "desktop/build/compose/jars/*.jar,desktop/build/compose/binaries/main/*/*"
|
|
|
|
token: ${{ secrets.GH_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
# Windows Package
|
|
|
|
create-win-package:
|
|
|
|
runs-on: windows-latest
|
|
|
|
name: Create Windows Package
|
|
|
|
steps:
|
|
|
|
# Setup Java environment for the next steps
|
|
|
|
- name: Setup Java
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 15
|
|
|
|
|
|
|
|
# Check out current repository
|
|
|
|
- name: Fetch Sources
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
|
|
|
|
# Build Desktop Uber Jar application
|
|
|
|
- name: Desktop Uber Jar
|
|
|
|
run: ./gradlew :desktop:packageUberJarForCurrentOS
|
|
|
|
|
|
|
|
# Build Desktop Packaged application
|
|
|
|
- name: Desktop App Package
|
|
|
|
run: ./gradlew :desktop:packageMsi
|
|
|
|
|
2021-09-26 00:45:21 +02:00
|
|
|
# Build Android App
|
|
|
|
- name: Generate Release APK
|
|
|
|
run: ./gradlew :android:assembleRelease
|
|
|
|
|
|
|
|
# Sign Android Apk
|
|
|
|
- name: Sign APK
|
|
|
|
uses: r0adkll/sign-android-release@v1
|
|
|
|
id: sign_app
|
|
|
|
with:
|
|
|
|
releaseDirectory: android/build/outputs/apk/release
|
|
|
|
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
|
|
|
|
alias: ${{ secrets.ALIAS }}
|
|
|
|
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
|
|
|
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
|
|
|
|
2021-09-05 17:34:25 +02:00
|
|
|
# Create a Draft Release
|
|
|
|
- name: Draft Release
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
with:
|
|
|
|
draft: true
|
2021-09-26 00:45:21 +02:00
|
|
|
allowUpdates: true
|
2021-09-26 10:56:03 +02:00
|
|
|
tag: "v3.3.2"
|
2021-09-26 10:13:59 +02:00
|
|
|
artifacts: "desktop/build/compose/jars/*.jar,desktop/build/compose/binaries/main/*/*,android/build/outputs/apk/release/*signed.apk"
|
2021-09-05 17:34:25 +02:00
|
|
|
token: ${{ secrets.GH_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
create-mac-package:
|
|
|
|
runs-on: macos-latest
|
|
|
|
name: Create Mac Package
|
|
|
|
steps:
|
|
|
|
# Setup Java environment for the next steps
|
|
|
|
- name: Setup Java
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 15
|
|
|
|
|
|
|
|
# Check out current repository
|
|
|
|
- name: Fetch Sources
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
|
|
|
|
# Build Desktop Uber Jar application
|
|
|
|
- name: Desktop Uber Jar
|
|
|
|
run: ./gradlew :desktop:packageUberJarForCurrentOS
|
|
|
|
|
|
|
|
# Build Desktop Packaged application
|
|
|
|
- name: Desktop App Package
|
|
|
|
run: ./gradlew :desktop:packageDmg
|
|
|
|
|
2021-09-05 16:49:55 +02:00
|
|
|
# Create a Draft Release
|
|
|
|
- name: Draft Release
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
with:
|
|
|
|
draft: true
|
2021-09-26 00:45:21 +02:00
|
|
|
allowUpdates: true
|
2021-09-26 10:56:03 +02:00
|
|
|
tag: "v3.3.2"
|
2021-09-05 17:34:25 +02:00
|
|
|
artifacts: "desktop/build/compose/jars/*.jar,desktop/build/compose/binaries/main/*/*"
|
2021-09-05 16:49:55 +02:00
|
|
|
token: ${{ secrets.GH_TOKEN }}
|