Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
40 lines
1.4 KiB
YAML
40 lines
1.4 KiB
YAML
name: Build release APK
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-release-apk:
|
|
runs-on: ubuntu-latest
|
|
if: endsWith(github.ref, '-alpha') || endsWith(github.ref, '-beta') || endsWith(github.ref, '-rc') || endsWith(github.ref, '-stable')
|
|
continue-on-error: true
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
submodules: true
|
|
- uses: actions/setup-java@v5
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: 21
|
|
- uses: gradle/actions/setup-gradle@v6
|
|
with:
|
|
cache-encryption-key: Da25KUVSE5jbGds2zXmfXw==
|
|
- name: Write sign info
|
|
if: github.repository_owner == 'LawnchairLauncher'
|
|
run: |
|
|
if [ ! -z "${{ secrets.KEYSTORE }}" ]; then
|
|
echo storePassword='${{ secrets.KEYSTORE_PASSWORD }}' >> keystore.properties
|
|
echo keyAlias='${{ secrets.KEY_ALIAS }}' >> keystore.properties
|
|
echo keyPassword='${{ secrets.KEY_PASSWORD }}' >> keystore.properties
|
|
echo storeFile='${{ github.workspace }}/key.jks' >> keystore.properties
|
|
echo ${{ secrets.KEYSTORE }} | base64 --decode > ${{ github.workspace }}/key.jks
|
|
fi
|
|
- name: Build release APK
|
|
run: ./gradlew assembleLawnWithQuickstepGithubRelease bundleLawnWithQuickstepPlayRelease
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: Release APK
|
|
path: build/outputs/*
|
|
|