Files
chrnx f4973096ac
CI / build (pull_request) Successful in 14s
ci: move workflow actions off the deprecated Node 20 runtime
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>
2026-10-17 22:55:51 -05:00

33 lines
1.2 KiB
YAML

name: Promote → GitHub
# Runs on GITEA ONLY. Mirrors main, and each version tag as it is created, to the public GitHub
# repo. On GitHub a v* tag runs release.yml, which attaches the dist.tar.gz the cPanel deploy uses.
#
# A tag is pushed only on its own event, by name. The branch push used to add `git push --tags`,
# which is refused whenever any old tag points at different objects on the two forges
# (v26.8.1-beta.0 and v26.8.2-beta.0 do), so every promotion of main went red even though main had
# already arrived.
on:
push:
branches: [main]
tags: ['v*']
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 or the new tag to GitHub
env:
GH_TOKEN: ${{ secrets.GH_PROMOTE_TOKEN }}
run: |
git remote add github "https://x-access-token:${GH_TOKEN}@github.com/Expressive-Tea/green-tea-site.git"
if [ "${{ github.ref_type }}" = "tag" ]; then
git push github "refs/tags/${{ github.ref_name }}"
else
git push github "HEAD:refs/heads/main"
fi