SpotiFlyer/.github/workflows/build-release-binaries.yml
dependabot[bot] 57dae089e2
Bump actions/checkout from 2 to 3 in /.github/workflows
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-23 01:26:55 +00:00

123 lines
3.4 KiB
YAML

name: Build Release Binaries
on:
[ workflow_dispatch ]
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@v2
with:
distribution: 'zulu'
java-version: 15
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v3
# Build Desktop Uber Jar application
- name: Desktop Uber Jar
run: ./gradlew :desktop:packageUberJarForCurrentOS
# 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
allowUpdates: true
tag: "v3.6.3"
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@v2
with:
distribution: 'zulu'
java-version: 15
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v3
# 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
# 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 }}
# Create a Draft Release
- name: Draft Release
uses: ncipollo/release-action@v1
with:
draft: true
allowUpdates: true
tag: "v3.6.3"
artifacts: "desktop/build/compose/jars/*.jar,desktop/build/compose/binaries/main/*/*,android/build/outputs/apk/release/*signed.apk"
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@v2
with:
distribution: 'zulu'
java-version: 15
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v3
# 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
# Create a Draft Release
- name: Draft Release
uses: ncipollo/release-action@v1
with:
draft: true
allowUpdates: true
tag: "v3.6.3"
artifacts: "desktop/build/compose/jars/*.jar,desktop/build/compose/binaries/main/*/*"
token: ${{ secrets.GH_TOKEN }}