From e169a7c3bf196f7832497bd5cade7a6addfa2250 Mon Sep 17 00:00:00 2001 From: Alex Yong Date: Wed, 3 Sep 2025 14:47:25 +0000 Subject: [PATCH] adding in automated workflow --- .github/workflows/android.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 148df51b..94febb71 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -10,13 +10,6 @@ jobs: runs-on: ubuntu-latest - env: - RVX_SENTRY_DSN: ${{ vars.RVX_SENTRY_DSN }} - RVX_ANALYSIS_ENABLED: ${{ vars.RVX_ANALYSIS_ENABLED }} - RVX_ANALYSIS_BASEURL: ${{ vars.RVX_ANALYSIS_BASEURL }} - RVX_DEBUG_APP_NAME: ${{ vars.RVX_DEBUG_APP_NAME }} - RVX_BUILD_FLAVOUR_ID: ${{ vars.RVX_BUILD_FLAVOUR_ID }} - steps: - uses: actions/checkout@v4 with: @@ -32,16 +25,22 @@ jobs: - name: Setup Android SDK uses: android-actions/setup-android@v2 - - name: Grant execute permission for gradlew - run: chmod +x gradlew + - name: Set up repo + run: chmod +x gradlew && deno run -A scripts/download_deps.ts --yes && cp revoltbuild.properties.example revoltbuild.properties && cp sentry.properties.example sentry.properties && cp app/google-services.json.example app/google-services.json && git submodule update --init --recursive + + - name: Add signing key from the KEYSTORE_BASE64 github actions secret + run: echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > app/release-key.keystore + + - name: Add revoltbuild.properties from the revoltbuildPropertiesbase64 secret + run: echo "${{ secrets.REVOLTBUILD_PROPERTIES_BASE64 }}" | base64 --decode > revoltbuild.properties - name: Build with Gradle - run: ./gradlew --no-daemon assembleDebug + run: ./gradlew --no-daemon assembleRelease - - name: Archive debug APK + - name: Archive release APK uses: actions/upload-artifact@v3 with: - name: debug-apk + name: release-apk retention-days: 5 path: | - app/build/outputs/apk/debug/app-debug.apk \ No newline at end of file + app/build/outputs/apk/release/app-release.apk \ No newline at end of file