# 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: ac_taskgraph.loader.all_dep:loader

transforms:
    - ac_taskgraph.transforms.treeherder:transforms
    - ac_taskgraph.transforms.all_dep:transforms
    - ac_taskgraph.transforms.github_release:transforms
    - taskgraph.transforms.task:transforms

kind-dependencies:
    - post-beetmover

only-for-build-types:
    - release

group-by: build-type

job-template:
    description: Create/Update Github release
    worker-type: github
    worker:
        action: release
        github-project:
            by-level:
                '3': android-components
                default: staging-android-components
        is-prerelease:
            by-build-type:
                release: false
                default: true
        release-name:
            by-build-type:
                release: Android-Components {version}
                default: Android-Components fake release {version}
    treeherder:
        kind: build
        platform: android-all/opt
        job-symbol: github-release
        tier: 1
