Skip to content

Commit

Permalink
chore: Updated workflows to use published actions
Browse files Browse the repository at this point in the history
Updated the workflows to use published actions for building and deploying the desktop, Android, and iOS apps. This change simplifies the workflows and improves maintainability by leveraging pre-built actions.
  • Loading branch information
niyajali committed Dec 17, 2024
1 parent 07a700b commit 8a6c68f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/actions/android-beta/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ runs:
echo $KEYSTORE | base64 --decode > ${{ inputs.android_package_name }}/release_keystore.keystore
# Inflate google-services.json
echo $GOOGLE_SERVICES | base64 --decode > ${{ inputs.android_package_name }}/google-services.json
echo $GOOGLE_SERVICES | base64 --decode > ${{ inputs.android_package_name }}/google-services.json
# Inflate PlayStore credentials
touch ${{ inputs.android_package_name }}/playStorePublishServiceCredentialsFile.json
echo $PLAYSTORE_CREDS | base64 --decode > ${{ inputs.android_package_name }}/playStorePublishServiceCredentialsFile.json
echo $PLAYSTORE_CREDS | base64 --decode > ${{ inputs.android_package_name }}/playStorePublishServiceCredentialsFile.json
# Build Android App Bundle for Play Store
- name: Build Release
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/build-android-app/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ runs:
echo $KEYSTORE | base64 --decode > ${{ inputs.android_package_name }}/release_keystore.keystore
# Inflate google-services.json
echo $GOOGLE_SERVICES | base64 --decode > ${{ inputs.android_package_name }}/google-services.json
echo $GOOGLE_SERVICES | base64 --decode > ${{ inputs.android_package_name }}/google-services.json
- name: Build Debug Android App
Expand Down
10 changes: 0 additions & 10 deletions .github/actions/build-ios/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ runs:
shell: bash
run: bundle exec fastlane ios build_ios

- name: List MifosPay iOS Files and Subdirectories
shell: bash
run: find mifospay-ios -type d -exec ls -la {} \;

- name: Install tree and List Directory
shell: bash
run: |
apt-get install tree -y
tree mifospay-ios -a
- name: Upload iOS Artifact
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android-promote-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fetch-depth: 0

- name: Promote Android App
uses: ./.github/actions/android-beta
uses: openMF/kmp-publish-android-on-playstore-beta[email protected]
with:
release_type: ${{ inputs.release_type }}
android_package_name: 'mifospay-android'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android-promote-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v4

- name: Promote Android App to Production
uses: ./.github/actions/android-production
uses: openMF/kmp-publish-android-on-playstore-production[email protected]
with:
android_package_name: 'mifospay-android'
playstore_creds: ${{ secrets.PLAYSTORECREDS }}
2 changes: 1 addition & 1 deletion .github/workflows/build-desktop-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fetch-depth: 0

- name: Build Desktop App
uses: ./.github/actions/build-desktop-app
uses: openMF/kmp-publish-desktop-app[email protected]
id: build-desktop
with:
desktop_package_name: 'mifospay-desktop'

0 comments on commit 8a6c68f

Please sign in to comment.