Skip to content

Commit

Permalink
Setup CI/CD for android build
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sneha-s committed Apr 5, 2024
1 parent f10efaa commit fd57173
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/android_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ jobs:
IFS=''
buildName="${versionValue[0]}.${versionValue[1]}.${{ github.run_number }}"
echo "Generating android build $buildName $buildNumber"
echo $APKSIGN_KEYSTORE_PASS | base64 -di > release.jks
echo $APKSIGN_KEYSTORE_BASE64 | base64 -di > release.jks
export APKSIGN_KEYSTORE=`pwd`/release.jks
flutter build appbundle --build-number=$buildNumber --build-name=$buildName
mv build/app/outputs/bundle/release/app-release.aab .
env:
APKSIGN_KEYSTORE_BASE64: ${{ secrets.APKSIGN_KEYSTORE_BASE64 }}
APKSIGN_KEYSTORE_PASS: ${{ secrets.APKSIGN_KEYSTORE_PASS }}
APKSIGN_KEY_ALIAS: ${{ secrets.APKSIGN_KEY_ALIAS }}
APKSIGN_KEY_PASS: ${{ secrets.APKSIGN_KEY_PASS }}
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/ios_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Publish to App Store Connect

on:
workflow_dispatch:
push:
branches:
- main
on: push




Expand Down Expand Up @@ -38,7 +35,7 @@ jobs:
FIREBASE_OPTIONS_BASE64: ${{ secrets.FIREBASE_OPTIONS_BASE64 }}
GOOGLE_SERVICES_PLIST_IOS_BASE64: ${{ secrets.GOOGLE_SERVICES_PLIST_IOS_BASE64 }}
run: |
echo $FIREABSE_APP_ID_JSON_BASE64 | base64 --decode > ios/fireabse_app_id_file.json
echo $FIREABSE_APP_ID_JSON_BASE64 | base64 --decode > ios/firebase_app_id_file.json
echo $FIREBASE_OPTIONS_BASE64 | base64 --decode > lib/firebase_options.dart
echo $GOOGLE_SERVICES_PLIST_IOS_BASE64 | base64 --decode > ios/Runner/GoogleService-Info.plist
echo $DESKTOP_CREDENTIALS_BASE64 | base64 --decode > lib/desktop_credentials.dart
Expand Down

0 comments on commit fd57173

Please sign in to comment.