Mobile POS - 🍎 iOS & 🤖 Android #43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release Mobile POS | |
| run-name: "Mobile POS - ${{ inputs.platform == 'both' && '🍎 iOS & 🤖 Android' || inputs.platform == 'ios' && '🍎 iOS' || '🤖 Android' }}" | |
| permissions: | |
| id-token: write | |
| contents: read | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| platform: | |
| description: 'Platform to build' | |
| required: true | |
| type: choice | |
| options: | |
| - both | |
| - android | |
| - ios | |
| push: | |
| tags: | |
| - 'variant-*' | |
| jobs: | |
| release-android: | |
| if: ${{ github.event_name == 'push' || inputs.platform == 'android' || inputs.platform == 'both' }} | |
| uses: ./.github/workflows/release-android-base.yaml | |
| with: | |
| name: 'Mobile POS React Native' | |
| root-path: 'dapps/pos-app' | |
| release-type: 'production' | |
| project-type: 'dapp' | |
| output-path: 'dapps/pos-app/android/app/build/outputs/apk/release/app-release.apk' | |
| package-manager: 'npm' | |
| is-expo-project: true | |
| firebase-app-id: ${{ vars.POS_ANDROID_FIREBASE_APP_ID }} | |
| secrets: | |
| env-file: ${{ secrets.POS_ENV_FILE }} | |
| sentry-file: ${{ secrets.POS_SENTRY_FILE }} | |
| secrets-file: ${{ secrets.ANDROID_SECRETS_FILE }} | |
| gsa-key: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }} | |
| keystore-name: ${{ vars.WC_PROD_KEYSTORE_NAME }} | |
| keystore: ${{ secrets.WC_PROD_KEYSTORE }} | |
| aws-account-id: ${{ secrets.AWS_ACCOUNT_ID }} | |
| slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| firebase-url: ${{ vars.FIREBASE_POS_URL }} | |
| release-ios: | |
| if: ${{ github.event_name != 'push' && (inputs.platform == 'ios' || inputs.platform == 'both') }} | |
| uses: ./.github/workflows/release-ios-base.yaml | |
| with: | |
| name: 'Mobile POS React Native' | |
| root-path: 'dapps/pos-app' | |
| release-type: 'production' | |
| scheme-name: 'WPay' | |
| bundle-id: 'com.reown.mobilepos' | |
| apple-id: '6754570257' | |
| project-type: 'dapp' | |
| package-manager: 'npm' | |
| testflight-groups: 'External' | |
| is-expo-project: true | |
| secrets: | |
| env-file: ${{ secrets.POS_ENV_FILE }} | |
| sentry-file: ${{ secrets.POS_SENTRY_FILE }} | |
| apple-username: ${{ secrets.APPLE_USERNAME }} | |
| apple-key-id: ${{ secrets.APPLE_KEY_ID }} | |
| apple-key-content: ${{ secrets.APPLE_KEY_CONTENT }} | |
| apple-issuer-id: ${{ secrets.APPLE_ISSUER_ID }} | |
| match-username: ${{ secrets.MATCH_USERNAME }} | |
| match-keychain-password: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }} | |
| match-git-url: ${{ secrets.MATCH_GIT_URL }} | |
| match-ssh-key: ${{ secrets.MATCH_SSH_KEY }} | |
| slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| testflight-url: ${{ vars.TESTFLIGHT_POS_URL }} |