Skip to content

Commit

Permalink
Update Main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandregpereira committed Aug 18, 2024
1 parent 5c6318b commit 3ee59fe
Showing 1 changed file with 29 additions and 12 deletions.
41 changes: 29 additions & 12 deletions .github/workflows/Main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -68,18 +63,40 @@ jobs:
name: app-release-aab
path: app/build/outputs/bundle/release/app-release.aab

- name: Upload Dev APK
uses: actions/[email protected]
with:
name: app-dev-release-apk
path: app/build/outputs/apk/release/app-dev-release.apk

- name: Upload APK metadata JSON
uses: actions/[email protected]
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/[email protected]

- name: set up JDK 17
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'adopt'

- name: Setup Gradle
uses: gradle/[email protected]

- 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/[email protected]
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
Expand Down

0 comments on commit 3ee59fe

Please sign in to comment.