From 0e4fdd69d2a6090b1f3a31eca137bdc262c5ffc8 Mon Sep 17 00:00:00 2001 From: SuperDragonXD <70206496+SuperDragonXD@users.noreply.github.com> Date: Wed, 21 Aug 2024 10:45:57 +0800 Subject: [PATCH] Re-implement built_release.apk.yml For testing purposes --- .github/workflows/build_release_apk.yml | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build_release_apk.yml diff --git a/.github/workflows/build_release_apk.yml b/.github/workflows/build_release_apk.yml new file mode 100644 index 00000000000..bc931bc40d3 --- /dev/null +++ b/.github/workflows/build_release_apk.yml @@ -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 +