Skip to content

Commit

Permalink
Re-implement built_release.apk.yml
Browse files Browse the repository at this point in the history
For testing purposes
  • Loading branch information
SuperDragonXD committed Aug 21, 2024
1 parent 498e6a7 commit 0e4fdd6
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build_release_apk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build release APK

on:
workflow_dispatch:

jobs:
build-release-apk:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: gradle/actions/setup-gradle@v4
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 assembleLawnWithQuickstepMarketDebug
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Release APK
path: build/outputs/apk/**/**/*.apk

0 comments on commit 0e4fdd6

Please sign in to comment.