From 4befd1c69b02da0c73dda7bb86ea6a392f2e2769 Mon Sep 17 00:00:00 2001 From: jh2oman Date: Tue, 3 Dec 2024 14:07:53 -0800 Subject: [PATCH 1/2] chore(ios): get iOS builds working --- .env.mainnet | 4 ++-- .github/workflows/release-production.yml | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.env.mainnet b/.env.mainnet index 1b0ad5502c2..7cb2063397f 100644 --- a/.env.mainnet +++ b/.env.mainnet @@ -5,8 +5,8 @@ SMS_RETRIEVER_APP_SIGNATURE=bU9E4ctGtIW DEV_SETTINGS_ACTIVE_INITIALLY=false FIREBASE_ENABLED=false SHOW_TESTNET_BANNER=false -APP_BUNDLE_ID=org.mento.app -APP_STORE_ID=1520414263 +APP_BUNDLE_ID=xyz.mobilestack.mento +APP_STORE_ID=6738967491 APP_DISPLAY_NAME=Mento IOS_GOOGLE_SERVICE_PLIST=GoogleService-Info.mainnet.plist SENTRY_ENABLED=true diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index f2eae1b1629..fb355b3657a 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -7,18 +7,18 @@ on: workflow_dispatch: jobs: - # ios: - # uses: ./.github/workflows/release-fastlane-ios.yml - # with: - # branch: ${{ github.ref_name }} - # lanes: '["mainnet"]' - # secrets: - # gcp-service-account-key: ${{ secrets.GCP_MAINNET_RELEASE_AUTOMATION_SERVICE_ACCOUNT_KEY }} - - android: - uses: ./.github/workflows/release-fastlane-android.yml + ios: + uses: ./.github/workflows/release-fastlane-ios.yml with: branch: ${{ github.ref_name }} lanes: '["mainnet"]' secrets: gcp-service-account-key: ${{ secrets.GCP_MAINNET_RELEASE_AUTOMATION_SERVICE_ACCOUNT_KEY }} + + # android: + # uses: ./.github/workflows/release-fastlane-android.yml + # with: + # branch: ${{ github.ref_name }} + # lanes: '["mainnet"]' + # secrets: + # gcp-service-account-key: ${{ secrets.GCP_MAINNET_RELEASE_AUTOMATION_SERVICE_ACCOUNT_KEY }} From 20261d872da9b9aec6fa624151ad0db923494fb8 Mon Sep 17 00:00:00 2001 From: jh2oman Date: Tue, 3 Dec 2024 14:51:41 -0800 Subject: [PATCH 2/2] docs --- .github/workflows/release-production.yml | 14 +++++++------- RELEASES.md | 9 +++++++++ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index fb355b3657a..b37dbe5538a 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -15,10 +15,10 @@ jobs: secrets: gcp-service-account-key: ${{ secrets.GCP_MAINNET_RELEASE_AUTOMATION_SERVICE_ACCOUNT_KEY }} - # android: - # uses: ./.github/workflows/release-fastlane-android.yml - # with: - # branch: ${{ github.ref_name }} - # lanes: '["mainnet"]' - # secrets: - # gcp-service-account-key: ${{ secrets.GCP_MAINNET_RELEASE_AUTOMATION_SERVICE_ACCOUNT_KEY }} + android: + uses: ./.github/workflows/release-fastlane-android.yml + with: + branch: ${{ github.ref_name }} + lanes: '["mainnet"]' + secrets: + gcp-service-account-key: ${{ secrets.GCP_MAINNET_RELEASE_AUTOMATION_SERVICE_ACCOUNT_KEY }} diff --git a/RELEASES.md b/RELEASES.md index 5a1f5041890..b0f2b3a381a 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,5 +1,7 @@ # Releases +The `Release - Production` workflow in github can be run to release new versions of Mento. iOS is automated and Android requires a few extra steps. + ## Android - (internal testers) Android builds can be manually released by running the `Release - Production` workflow, downloading the bundle from github, and uploading the bundle to the playstore. @@ -8,3 +10,10 @@ Android builds can be manually released by running the `Release - Production` wo 1. Download and unzip the android bundle which you can find in the build logs under android => fastlane-android (mainnet) => Upload Android build artifacts. 1. Navigate to [Internal Testing on the Google Play Console](https://play.google.com/console/u/0/developers/5695387721434163201/app/4974536396935190989/tracks/internal-testing) (Reach out to Silas or Jacob if you need access) and click `Create new release`. Upload the app bundle that you just dowloaded and unzipped and click `Next`. Click `Save and Publish` on the next screen. 1. You're done! Internal testers should be able to download the latest version of Mento on their android devices. + +## iOS - (Testflight) + +iOS builds can be manually released by running the `Release - Production` workflow. + +1. Run the [Release - Production Action](https://github.com/mobilestack-xyz/mobilestack-mento/actions/workflows/release-production.yml) against the `main` branch +1. You're done! Users that have access to [Mento in Testflight](https://appstoreconnect.apple.com/teams/dcfc5c64-36b5-46a2-af36-84acc93d2b62/apps/6738967491/testflight/ios) will autmatically recieve the latest build on their iOS device.