From 3ee59fe6b60e851169a747483ea804a5ef1ad2bd Mon Sep 17 00:00:00 2001 From: Alexandre G Pereira Date: Sun, 18 Aug 2024 10:50:22 -0300 Subject: [PATCH] Update Main.yml --- .github/workflows/Main.yml | 41 +++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/.github/workflows/Main.yml b/.github/workflows/Main.yml index 47992288..885cafd3 100644 --- a/.github/workflows/Main.yml +++ b/.github/workflows/Main.yml @@ -33,12 +33,7 @@ jobs: - name: Build with Gradle env: MONSTER_COMPENDIUM_KEYSTORE_PASSWORD: ${{ secrets.MONSTER_COMPENDIUM_KEYSTORE_PASSWORD }} - run: ./gradlew jvmTest testReleaseUnitTest bundleRelease :app:packageDmg - - - name: Generate Dev Apk - env: - MONSTER_COMPENDIUM_KEYSTORE_PASSWORD: ${{ secrets.MONSTER_COMPENDIUM_KEYSTORE_PASSWORD }} - run: ./gradlew assembleRelease -Pdev + run: ./gradlew jvmTest testReleaseUnitTest assembleRelease bundleRelease :app:packageDmg - name: Upload the test report if: failure() @@ -68,18 +63,40 @@ jobs: name: app-release-aab path: app/build/outputs/bundle/release/app-release.aab - - name: Upload Dev APK - uses: actions/upload-artifact@v3.1.1 - with: - name: app-dev-release-apk - path: app/build/outputs/apk/release/app-dev-release.apk - - name: Upload APK metadata JSON uses: actions/upload-artifact@v3.1.1 with: name: app-output-metadata-json path: app/build/outputs/apk/release/output-metadata.json + android-dev-distribution: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.5.0 + + - name: set up JDK 17 + uses: actions/setup-java@v3.6.0 + with: + java-version: '17' + distribution: 'adopt' + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2.4.2 + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Generate Dev Apk + env: + MONSTER_COMPENDIUM_KEYSTORE_PASSWORD: ${{ secrets.MONSTER_COMPENDIUM_KEYSTORE_PASSWORD }} + run: ./gradlew assembleRelease -Pdev + + - name: Upload Dev APK + uses: actions/upload-artifact@v3.1.1 + with: + name: app-dev-release-apk + path: app/build/outputs/apk/release/app-dev-release.apk + ubuntu-desktop-distribution: name: Ubuntu Desktop Distribution runs-on: ubuntu-latest