CI / installer (macos-14) (pull_request) Successful in 10s
CI / check (pull_request) Successful in 27s
CI / starter (bun) (pull_request) Successful in 31s
CI / starter (deno) (pull_request) Successful in 32s
CI / starter (edge) (pull_request) Successful in 37s
CI / core-freshness (pull_request) Has been skipped
CI / starter (node) (pull_request) Successful in 31s
CI / installer (ubuntu-latest) (pull_request) Successful in 10s
actions/checkout and actions/setup-node v4 -> v5, softprops/action-gh-release v2 -> v3; all three run on Node 24. setup-deno@v2, setup-bun@v2 and crates-io-auth-action@v1 already resolve to Node 24 releases. Jobs keep node-version 22. Refs Green-Tea/core#103 Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
37 lines
1.6 KiB
YAML
37 lines
1.6 KiB
YAML
name: Promote → GitHub
|
|
|
|
# Runs on GITEA ONLY. Mirrors `main` to the public GitHub repo.
|
|
#
|
|
# Tags are NOT promoted here. They are promoted by release.yml's `promote-tag`
|
|
# job, which waits for this forge's builds to pass first — pushing a tag is what
|
|
# starts GitHub's release and its crates.io publish, and crates.io cannot be
|
|
# unpublished, only yanked. Both workflows used to fire on the same tag push, so
|
|
# Gitea built and GitHub published at the same time and this forge was never the
|
|
# check it was meant to be.
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
push-github:
|
|
if: ${{ github.server_url != 'https://github.com' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Push main to GitHub
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GH_PROMOTE_TOKEN }}
|
|
run: |
|
|
git remote add github "https://x-access-token:${GH_TOKEN}@github.com/Expressive-Tea/matcha.git"
|
|
# Deliberately not `--tags`. v26.7.0 points at a different commit on
|
|
# each forge and v26.8.0-beta.0 is annotated here and lightweight
|
|
# there, so pushing every tag is a non-fast-forward that fails — which
|
|
# it has been doing on every push to main, reddening a job whose real
|
|
# work (the line above) had already succeeded. Reconciling that
|
|
# divergence means rewriting what a published tag points at, which is
|
|
# a decision rather than a fix; new tags are unaffected and go through
|
|
# release.yml.
|
|
git push github "HEAD:refs/heads/main"
|