name: Android Build CI on: push: branches: [ master, release-*, development ] pull_request: branches: [ master, release-*, development ] merge_group: concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: build-qa-debug: uses: ./.github/workflows/generate_build.yml with: environment: qa type: debug output: APK build-qa-release: if: github.event_name == 'push' && (github.ref_name == 'master' || startsWith(github.ref_name, 'release-')) uses: ./.github/workflows/generate_build.yml with: environment: qa type: release output: APK generate-apk-diff: if: github.event_name == 'pull_request' && github.base_ref == 'development' uses: ./.github/workflows/generate_apk_diff.yml needs: build-qa-debug secrets: AWS_ACCESS_KEY_GITHUB_CACHE: ${{ secrets.AWS_ACCESS_KEY_GITHUB_CACHE }} AWS_SECRET_KEY_GITHUB_CACHE: ${{ secrets.AWS_SECRET_KEY_GITHUB_CACHE }} upload-apk-to-s3: if: github.event_name == 'push' && github.ref_name == 'development' uses: ./.github/workflows/upload_file.yml needs: build-qa-debug secrets: AWS_ACCESS_KEY_GITHUB_CACHE: ${{ secrets.AWS_ACCESS_KEY_GITHUB_CACHE }} AWS_SECRET_KEY_GITHUB_CACHE: ${{ secrets.AWS_SECRET_KEY_GITHUB_CACHE }}