Skip to content

Commit

Permalink
chore: rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
ohassine committed May 23, 2024
1 parent 18292bd commit 6221310
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions .github/workflows/build-develop-app.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: "Develop app"

on:
push:
branches:
Expand All @@ -8,18 +7,18 @@ on:
branches:
- develop
types: [ opened, synchronize ]

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

jobs:
# code-analysis:
# needs: [ detekt ]
# uses: ./.github/workflows/code-analysis.yml
# code-analysis:
# uses: ./.github/workflows/code-analysis.yml
# unit-tests:
# needs: [ detekt ]
# uses: ./.github/workflows/gradle-run-unit-tests.yml
build-app:
# needs: [ detekt ]
runs-on: buildjet-8vcpu-ubuntu-2204
needs: [ detekt ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -32,21 +31,6 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: gradle
# - name: Decode release Keystore
# env:
# ENCODED_STRING: ${{ secrets.ENCODED_KEYSTORE_PRE_RELEASE }}
# run: |
# TMP_KEYSTORE_FILE_PATH="${RUNNER_TEMP}"/keystore
# mkdir "${TMP_KEYSTORE_FILE_PATH}"
# echo $ENCODED_STRING | base64 -di > "${TMP_KEYSTORE_FILE_PATH}"/key.keystore
# - name: build staging flavour
# run:
# ./gradlew app:assembleStagingRelease -p ./ --no-daemon
# env:
# KEYSTORE_KEY_NAME_RELEASE: ${{ secrets.SIGNING_KEY_ALIAS_PRE_RELEASE }}
# KEYPWD_RELEASE: ${{ secrets.SIGNING_KEY_PASSWORD_PRE_RELEASE }}
# KEYSTOREPWD_RELEASE: ${{ secrets.SIGNING_STORE_PASSWORD_PRE_RELEASE }}
# ENABLE_SIGNING: ${{ secrets.ENABLE_SIGNING }}
- name: Decode debug Keystore
env:
ENCODED_STRING: ${{ secrets.ENCODED_KEYSTORE_DEBUG }}
Expand All @@ -64,9 +48,23 @@ jobs:
KEYPWD_DEBUG: ${{ secrets.SIGNING_KEY_PASSWORD_DEBUG }}
KEYSTOREPWD_DEBUG: ${{ secrets.SIGNING_STORE_PASSWORD_DEBUG }}
ENABLE_SIGNING: ${{ secrets.ENABLE_SIGNING }}
- name: Decode release Keystore
env:
ENCODED_STRING: ${{ secrets.ENCODED_KEYSTORE_PRE_RELEASE }}
run: |
TMP_KEYSTORE_FILE_PATH="${RUNNER_TEMP}"/keystore
echo $ENCODED_STRING | base64 -di > "${TMP_KEYSTORE_FILE_PATH}"/key.keystore
- name: build staging flavour
run:
./gradlew app:assembleStagingRelease -p ./ --no-daemon
env:
KEYSTORE_KEY_NAME_RELEASE: ${{ secrets.SIGNING_KEY_ALIAS_PRE_RELEASE }}
KEYPWD_RELEASE: ${{ secrets.SIGNING_KEY_PASSWORD_PRE_RELEASE }}
KEYSTOREPWD_RELEASE: ${{ secrets.SIGNING_STORE_PASSWORD_PRE_RELEASE }}
ENABLE_SIGNING: ${{ secrets.ENABLE_SIGNING }}
- name: Upload
if: success()
uses: actions/upload-artifact@v4
with:
name: Build Artifacts
path: app/build/outputs/
path: app/build/outputs/

0 comments on commit 6221310

Please sign in to comment.