ci: move tag mirror workflow into .github/workflows
CI - Sanity Checks / Code Analysis (push) Successful in 5m36s
CI - Sanity Checks / Unit Tests (push) Failing after 14m18s
CI - Sanity Checks / Android JVM and Native Tests (push) Failing after 1m21s
CI - Sanity Checks / Native Formatting (push) Failing after 24s
CI - Sanity Checks / Linux native reliability (thread) (push) Failing after 3m12s
CI - Sanity Checks / Linux native reliability (address) (push) Failing after 3m10s
CI - Sanity Checks / Dependency Validation (push) Successful in 1m15s
CI - Sanity Checks / Server checks (push) Failing after 26s
CI - Sanity Checks / Website checks (push) Successful in 1m15s
CI - Sanity Checks / Linux package smoke build (push) Failing after 6m54s
Mirror release tags to GitHub build bridge / Mirror tag to GitHub (push) Failing after 42s
CI - Sanity Checks / Apple native reliability (iOS) (push) Canceled after 0s
CI - Sanity Checks / Apple native reliability (macOS) (push) Canceled after 0s
CI - Sanity Checks / Apple native reliability (tvOS) (push) Canceled after 0s
CI - Sanity Checks / Windows native reliability (arm64) (push) Canceled after 0s
CI - Sanity Checks / Windows native reliability (x64) (push) Canceled after 0s
Publish Windows Release to Gitea / Build Windows x64 and publish to Gitea (push) Canceled after 0s

Gitea's workflow discovery scans the first existing directory in
['.gitea/workflows', '.github/workflows'] and ignores the rest, so a
.gitea/workflows directory would silently shadow ci.yml and every other
workflow on this repo. The mirror workflow now lives next to the others
with a server_url guard so it only runs on Gitea.
This commit is contained in:
Yorick Rommers
2026-08-12 01:42:07 +02:00
parent eddbb236fe
commit a852d01b97
@@ -3,14 +3,21 @@ name: Mirror release tags to GitHub build bridge
# Gitea is the source of truth for releases, but this instance has no Windows # Gitea is the source of truth for releases, but this instance has no Windows
# runner (only ubuntu-latest on the homeserver), and Flutter Windows builds # runner (only ubuntu-latest on the homeserver), and Flutter Windows builds
# require a Windows host. So when a tag is pushed here, this workflow mirrors it # require a Windows host. So when a tag is pushed here, this workflow mirrors it
# to the public GitHub fork yorickr/plezy, whose only active workflow # to the public GitHub fork yorickr/plezy, whose windows-gitea-release workflow
# (.github/workflows/windows-gitea-release.yml) builds the Windows release on # builds the Windows release on GitHub-hosted runners and publishes the
# GitHub-hosted runners and publishes the artifacts back to this repo's Gitea # artifacts back to this repo's Gitea release for the same tag.
# release for the same tag. #
# This file lives in .github/workflows (not .gitea/workflows) on purpose:
# Gitea's workflow discovery uses the first existing directory in
# [".gitea/workflows", ".github/workflows"], so a .gitea/workflows directory
# would shadow every other workflow in this repo (ci.yml et al.) on Gitea.
# #
# The write path uses an SSH deploy key (secret RELEASE_PUSH_KEY) that only has # The write path uses an SSH deploy key (secret RELEASE_PUSH_KEY) that only has
# access to the fork. ssh.github.com:443 is used because the homeserver # access to the fork. ssh.github.com:443 is used because the homeserver
# demonstrably reaches GitHub over 443, and it avoids depending on outbound 22. # demonstrably reaches GitHub over 443, and it avoids depending on outbound 22.
#
# The job-level guard keeps this from running on GitHub (the fork would
# otherwise attempt it on every mirrored tag and fail on the missing secret).
on: on:
push: push:
@@ -26,6 +33,7 @@ on:
jobs: jobs:
mirror-tag: mirror-tag:
name: Mirror tag to GitHub name: Mirror tag to GitHub
if: github.server_url != 'https://github.com'
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: read contents: read