# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: android_taskgraph.loader.multi_dep:loader

transforms:
    - android_taskgraph.transforms.multi_dep:transforms
    - android_taskgraph.transforms.treeherder:transforms
    - android_taskgraph.transforms.github_release:transforms
    - taskgraph.transforms.task:transforms

kind-dependencies:
    - post-beetmover

primary-dependency: post-beetmover

only-for-build-types:
    - beta
    - release

group-by: build-type

task-template:
    description: Create/Update Github release
    shipping-phase: ship
    worker-type: github
    worker:
        action: release
        git-tag: "components-{head_tag}"
        github-project:
            by-level:
                '3': firefox-android
                default: staging-firefox-android
        is-prerelease:
            by-release-type:
                release: false
                beta: false
                default: true
        release-name:
            by-level:
                '3': Android-Components {version}
                default: Fake Android-Components {version}
    treeherder:
        kind: build
        platform: AC-android-all/opt
        job-symbol:
            by-build-type:
                release: github-release
                default: github-beta
        tier: 1
