Skip to content

Commit

Permalink
CHANGE build tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank1234 committed Jul 31, 2024
1 parent 538318c commit 143137a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ jobs:
uses: ./.github/workflows/scripts/prepare

- name: Build Debug APK
run: ./gradlew assembleDebug --stacktrace
run: ./gradlew assembleDevDebug --stacktrace

- name: Upload Debug APK to Artifacts
- name: Upload Dev Debug APK to Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ github.run_number }}_apk_debug
name: ${{ github.run_number }}_apk_dev_debug
path: |
${{ github.workspace }}/app/build/outputs/apk/dev/debug/app-debug.apk
${{ github.workspace }}/app/build/outputs/apk/devDebug/debug/app-dev-debug.apk
- name: Build Debug Bundle
run: ./gradlew bundleDebug --stacktrace
- name: Build Prod APK
run: ./gradlew assembleProdDebug --stacktrace

- name: Upload Debug Bundle to Artifacts
- name: Upload Prod Debug APK to Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ github.run_number }}_apk_debug
name: ${{ github.run_number }}_apk_prod_debug
path: |
${{ github.workspace }}/app/build/outputs/bundle/dev/debug/app-debug.aab
${{ github.workspace }}/app/build/outputs/apk/prodDebug/debug/app-prod-debug.apk
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,30 +36,30 @@ jobs:
echo $ENCODED_STRING > keystore-b64.txt
base64 -d <keystore-b64.txt >upload-keystore.jks
- name: Build Release APK
- name: Build Prod Release APK
env:
RELEASE_KEYSTORE_PASSWORD: ${{ secrets.RELEASE_KEYSTORE_PASSWORD }}
RELEASE_KEYSTORE_ALIAS: ${{ secrets.RELEASE_KEYSTORE_ALIAS }}
RELEASE_KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }}
run: ./gradlew assembleRelease --stacktrace
run: ./gradlew assembleProdRelease --stacktrace

- name: Upload Release APK to Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ github.run_number }}_apk_debug
path: |
${{ github.workspace }}/app/build/outputs/apk/dev/release/app-release.apk
${{ github.workspace }}/app/build/outputs/apk/prodRelease/app-prod-release.apk
- name: Build Release Bundle
- name: Build Prod Release Bundle
env:
RELEASE_KEYSTORE_PASSWORD: ${{ secrets.RELEASE_KEYSTORE_PASSWORD }}
RELEASE_KEYSTORE_ALIAS: ${{ secrets.RELEASE_KEYSTORE_ALIAS }}
RELEASE_KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }}
run: ./gradlew bundleRelease --stacktrace
run: ./gradlew bundleProdRelease --stacktrace

- name: Upload Release Bundle to Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ github.run_number }}_apk_debug
path: |
${{ github.workspace }}/app/build/outputs/bundle/dev/release/app-release.aab
${{ github.workspace }}/app/build/outputs/bundle/prodRelease/app-prod-release.aab

0 comments on commit 143137a

Please sign in to comment.