# 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: taskgraph.loader.transform:loader

transforms:
    - gecko_taskgraph.transforms.release:run_on_releases
    - gecko_taskgraph.transforms.release_deps:transforms
    - gecko_taskgraph.transforms.release_flatpak_push:transforms
    - gecko_taskgraph.transforms.task:transforms

kind-dependencies:
    - release-flatpak-repackage

task-defaults:
    description: Pushes Flatpaks onto Flathub
    run-on-projects: []  # to make sure this never runs as part of CI
    run-on-releases: [release-rc]
    shipping-phase: ship  # ship-rc phase
    treeherder:
        platform: linux64/opt
        kind: build
        tier: 2
    worker-type: pushflatpak
    worker:
        implementation: push-flatpak
        channel: beta

tasks:
    firefox-rc:
        shipping-product: firefox
        flathub-scope: "flathub:firefox"
        treeherder:
            symbol: Flatpak(push-beta)
