Skip to content

Commit

Permalink
Update release notes and Json
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarwillymc committed Jan 19, 2024
1 parent f21a825 commit 81d56db
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ on:
- all
- qa
- production
releaseNotes:
description: 'Release notes'
required: true
default: 'Update'
type: string
push:
branches:
- develop
Expand Down Expand Up @@ -51,6 +56,12 @@ jobs:

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Create file
run: cat /home/runner/work/MBCGroup/MBCGroup/app/google-services.json | base64
- name: Putting data
env:
DATA: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: echo $DATA > /home/runner/work/MBCGroup/MBCGroup/app/google-services.json
- name: Configuration Local.properties
env:
SHARED_PREFERENCES_NAME: ${{ secrets.SHARED_PREFERENCES_NAME }}
Expand All @@ -70,6 +81,12 @@ jobs:
else
${{secrets.APP_ID_RELEASE}}
fi
RELEASE_NOTE: |
if [[ "${{ inputs.releaseNotes }}" == "" ]]; then
cat release_notes.txt
else
${{inputs.releaseNotes}}
fi
run: |
echo "SHARED_PREFERENCES_NAME=$SHARED_PREFERENCES_NAME" >> local.properties
echo "BASE_URL=$BASE_URL" >> local.properties
Expand All @@ -89,6 +106,7 @@ jobs:
appId: $APP_ID
token: ${{ secrets.FIREBASE_TOKEN }}
groups: ${{ inputs.groupTester }}
releaseNotesFile: $RELEASE_NOTE
file: app/build/outputs/apk/${{ inputs.buildType }}/app-${{ inputs.buildType }}.apk
- name: Upload APK artifact
uses: actions/upload-artifact@v2
Expand Down
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ configure<com.google.firebase.appdistribution.gradle.AppDistributionExtension> {
releaseNotesFile = "${projectDir}/../release_notes.txt"
groups = getLocalProperty("TESTERS_GROUP", "")
}

dependencies {

// Dagger
Expand Down

0 comments on commit 81d56db

Please sign in to comment.