Skip to content

Commit

Permalink
chore: building rc build
Browse files Browse the repository at this point in the history
  • Loading branch information
ohassine committed May 23, 2024
1 parent 159982b commit a4c147c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-prod-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ name: "Prod app"
on:
push:
branches:
- develop
- prod
pull_request:
branches:
- develop
- prod
types: [ opened, synchronize ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
# code-analysis:
# uses: ./.github/workflows/code-analysis.yml
# unit-tests:
# uses: ./.github/workflows/gradle-run-unit-tests.yml
code-analysis:
uses: ./.github/workflows/code-analysis.yml
unit-tests:
uses: ./.github/workflows/gradle-run-unit-tests.yml
build-app:
# needs: [ unit-tests, code-analysis ]
needs: [ unit-tests, code-analysis ]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/build-rc-app.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: "Internal app"
name: "Release candidate app"

on:
push:
branches:
- release/candidate
- develop
merge_group:
pull_request:
branches:
- release/candidate
- develop
types: [ opened, synchronize ]
workflow_call:

Expand All @@ -16,12 +16,12 @@ concurrency:
cancel-in-progress: true

jobs:
code-analysis:
uses: ./.github/workflows/code-analysis.yml
unit-tests:
uses: ./.github/workflows/gradle-run-unit-tests.yml
# code-analysis:
# uses: ./.github/workflows/code-analysis.yml
# unit-tests:
# uses: ./.github/workflows/gradle-run-unit-tests.yml
build-app:
needs: [ unit-tests, code-analysis ]
# needs: [ unit-tests, code-analysis ]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -44,9 +44,16 @@ jobs:
echo $ENCODED_STRING | base64 -di > "${TMP_KEYSTORE_FILE_PATH}"/key.keystore
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build internal flavour
- name: Build internal flavour APK
run:
./gradlew app:assembleInternalCompat -p ./ --no-daemon
env:
KEYSTORE_KEY_NAME_COMPAT: ${{ secrets.SIGNING_KEY_ALIAS_INTERNAL_RELEASE }}
KEYPWD_COMPAT: ${{ secrets.SIGNING_KEY_PASSWORD_INTERNAL_RELEASE }}
KEYSTOREPWD_COMPAT: ${{ secrets.SIGNING_STORE_PASSWORD_INTERNAL_RELEASE }}
ENABLE_SIGNING: ${{ secrets.ENABLE_SIGNING }}
- name: Build internal flavour bundle
run:
./gradlew app:bundleInternalCompat -p ./ --no-daemon
env:
KEYSTORE_KEY_NAME_COMPAT: ${{ secrets.SIGNING_KEY_ALIAS_INTERNAL_RELEASE }}
Expand All @@ -56,7 +63,6 @@ jobs:
- name: Build Staging flavour
run:
./gradlew app:assembleStagingCompat -p ./ --no-daemon
./gradlew app:bundleStagingCompat -p ./ --no-daemon
env:
KEYSTORE_KEY_NAME_COMPAT: ${{ secrets.SIGNING_KEY_ALIAS_INTERNAL_RELEASE }}
KEYPWD_COMPAT: ${{ secrets.SIGNING_KEY_PASSWORD_INTERNAL_RELEASE }}
Expand Down

0 comments on commit a4c147c

Please sign in to comment.