Skip to content

Changes

Changes #2

Workflow file for this run

name: Build Android And Upload

Check failure on line 1 in .github/workflows/build-android.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-android.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: build-hold, upload-hold
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 }}