Skip to content

Commit

Permalink
fix: Build and release only production APK
Browse files Browse the repository at this point in the history
  • Loading branch information
DesarrolloAntonio committed Dec 2, 2024
1 parent 3a3b09e commit d6f88d9
Showing 1 changed file with 5 additions and 30 deletions.
35 changes: 5 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,6 @@ on:
- testing

jobs:
unit_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Run Unit Tests
run: ./gradlew testDebugUnitTest

android_tests:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Start Emulator and Run Instrumented Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew connectedDebugAndroidTest

build_and_release:
runs-on: ubuntu-latest
needs: [unit_tests, android_tests]
Expand All @@ -55,7 +28,10 @@ jobs:
uses: gradle/gradle-build-action@v2

- name: Build app
run: ./gradlew assembleRelease
run: |
./gradlew assembleProductionRelease
echo "Built APK files:"
find presentation/build/outputs/apk -name "*.apk" -type f
env:
KEYSTORE_PATH: ${{ github.workspace }}/key_store.jks
RELEASE_STORE_PASSWORD: ${{ secrets.RELEASE_STORE_PASSWORD }}
Expand All @@ -75,5 +51,4 @@ jobs:
name: Release - v${{ env.APP_VERSION_NAME }}
generate_release_notes: true
prerelease: false
files: |
presentation/build/outputs/apk/release/*.apk
files: presentation/build/outputs/apk/production/release/*.apk

0 comments on commit d6f88d9

Please sign in to comment.