Workflow file for this run
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: Build Android And Upload | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| type: | ||
| type: string | ||
| required: true | ||
| jobs: | ||
| build-hold: | ||
| name: Hold | ||
| runs-on: ubuntu-latest | ||
| environment: experimental_android_build | ||
| build-android: | ||
| name: Build | ||
| runs-on: ubuntu-latest | ||
| needs: build-hold | ||
| steps: | ||
| - name: Validate type input | ||
| run: | | ||
| if [[ "${{ inputs.type }}" != "official" && "${{ inputs.type }}" != "experimental" ]]; then | ||
| echo "❌ Invalid input: 'type' must be 'official' or 'experimental'" | ||
| exit 1 | ||
| fi | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v4 | ||
| - name: Checkout and Setup Node | ||
| uses: ./.github/actions/setup-node | ||
| - name: Build Android | ||
| uses: ./.github/actions/build-android | ||
| with: | ||
| type: 'experimental' | ||
| BUGSNAG_KEY: ${{ secrets.BUGSNAG_KEY }} | ||
| KEYSTORE_EXPERIMENTAL_BASE64: ${{ secrets.KEYSTORE_EXPERIMENTAL_BASE64 }} | ||
| KEYSTORE_EXPERIMENTAL: ${{ secrets.KEYSTORE_EXPERIMENTAL }} | ||
| KEYSTORE_EXPERIMENTAL_PASSWORD: ${{ secrets.KEYSTORE_EXPERIMENTAL_PASSWORD }} | ||
| KEYSTORE_EXPERIMENTAL_ALIAS: ${{ secrets.KEYSTORE_EXPERIMENTAL_ALIAS }} | ||
| GOOGLE_SERVICES_ANDROID: ${{ secrets.GOOGLE_SERVICES_ANDROID }} | ||
| upload-hold: | ||
| name: Hold | ||
| runs-on: ubuntu-latest | ||
| environment: experimental_android_build | ||
| needs: build-android | ||
| upload-android: | ||
| name: Upload | ||
| runs-on: ubuntu-latest | ||
| needs: [build-android, upload-hold] | ||
| steps: | ||
| - name: Validate type input | ||
| run: | | ||
| if [[ "${{ inputs.type }}" != "official" && "${{ inputs.type }}" != "experimental" ]]; then | ||
| echo "❌ Invalid input: 'type' must be 'official' or 'experimental'" | ||
| exit 1 | ||
| fi | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v4 | ||
| - name: Checkout and Setup Node | ||
| uses: ./.github/actions/setup-node | ||
| - name: Upload Android | ||
| uses: ./.github/actions/upload-android | ||
| with: | ||
| type: experimental | ||
| FASTLANE_GOOGLE_SERVICE_ACCOUNT: ${{ secrets.FASTLANE_GOOGLE_SERVICE_ACCOUNT }} | ||
| BUGSNAG_KEY: ${{ secrets.BUGSNAG_KEY }} | ||
| upload-internal: | ||
| name: Internal Sharing | ||
| runs-on: ubuntu-latest | ||
| needs: build-android | ||
| if: ${{ inputs.type == 'experimental' }} | ||
| steps: | ||
| - name: Validate type input | ||
| run: | | ||
| if [[ "${{ inputs.type }}" != "experimental" ]]; then | ||
| echo "❌ Invalid input: 'type' must be 'experimental'" | ||
| exit 1 | ||
| fi | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v4 | ||
| - name: Checkout and Setup Node | ||
| uses: ./.github/actions/setup-node | ||
| - name: Upload Android | ||
| uses: ./.github/actions/upload-internal-android | ||
| with: | ||
| type: experimental | ||
| FASTLANE_GOOGLE_SERVICE_ACCOUNT: ${{ secrets.FASTLANE_GOOGLE_SERVICE_ACCOUNT }} | ||
| BUGSNAG_KEY: ${{ secrets.BUGSNAG_KEY }} | ||