Skip to content
Draft
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
29 changes: 29 additions & 0 deletions .github/workflows/build-mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
default: android
options:
- android
- android-release-apk
- ios-registered-devices
- ios-testflight

Expand Down Expand Up @@ -39,3 +40,31 @@ jobs:
if: ${{ github.event.inputs.platform == 'ios-testflight' }}
working-directory: apps/mobile-wallet
run: eas build --platform=ios --profile=production --non-interactive --wait --auto-submit

- name: 🤖 Build and submit Android release APK
if: ${{ github.event.inputs.platform == 'android-release-apk' }}
working-directory: apps/mobile-wallet
run: eas build --platform=android --profile=release-apk --non-interactive --wait --local --output=app-release.apk

- name: Create Release
if: ${{ github.event.inputs.platform == 'android-release-apk' }}
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
draft: true
prerelease: false

- name: Upload APK asset
if: ${{ github.event.inputs.platform == 'android-release-apk' }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: app-release.apk
asset_name: app-release.apk
asset_content_type: application/vnd.android.package-archive
7 changes: 7 additions & 0 deletions apps/mobile-wallet/eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
"internal": {
"extends": "production",
"distribution": "internal"
},
"release-apk": {
"extends": "production",
"autoIncrement": false,
"android": {
"buildType": "apk"
}
}
},
"submit": {
Expand Down
Loading