Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/debug_build_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Add local.properties
run: |
echo ${{ secrets.LOCAL_PROPERTIES }} >> ./local.properties
echo '${{ secrets.LOCAL_PROPERTIES }}' >> ./local.properties

- name: Access Google-Service file
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json
Expand Down
34 changes: 6 additions & 28 deletions .github/workflows/firebase_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,9 @@ name: Firebase CD
on:
workflow_dispatch:
inputs:
major:
description: 'Major version'
required: true
minor:
description: 'Minor version'
required: true
patch:
description: 'Patch version'
required: true
releaseNotes:
description: 'Release Notes'
required: false

jobs:
deploy:
Expand All @@ -38,7 +32,7 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-

- name: Save Keystore
- name: Decode and save Keystore
run: |
echo "${{ secrets.JKS_BASE64 }}" > keystore.b64
base64 -d -i keystore.b64 > keystore.jks
Expand All @@ -51,31 +45,15 @@ jobs:

- name: Access Google-Service file
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json

- name: Debug - Check keystore file size
run: ls -lh keystore.jks

- name: Debug - Check SHA256 of keystore
run: sha256sum keystore.jks

- name: Debug - Check local.properties
run: cat local.properties

- name: Build with Gradle
run: ./gradlew assembleRelease

- name: Rename APK file
run: |
major=${{ github.event.inputs.major }}
minor=${{ github.event.inputs.minor }}
patch=${{ github.event.inputs.patch }}
formatted_version="${major}_${minor}_${patch}"
mv app/build/outputs/apk/release/app-release.apk app/build/outputs/apk/release/Acon-${formatted_version}.apk

- name: Upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{ secrets.FIREBASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups: Acon
file: app/build/outputs/apk/release/Acon-${{ github.event.inputs.major }}_${{ github.event.inputs.minor }}_${{ github.event.inputs.patch }}.apk
releaseNotes: ${{ github.event.inputs.releaseNotes }}
file: app/build/outputs/apk/release/app-release.apk