Compare commits

...

2 Commits

Author SHA1 Message Date
Mirror Bot
7bbfd7dc05 chore: strip .github for mirror push 2026-03-20 02:01:00 +00:00
55d9a245d7 Update CMakeLists.txt 2026-03-20 13:00:53 +11:00
2 changed files with 1 additions and 40 deletions

View File

@@ -1,39 +0,0 @@
# .github/workflows/mirror.yml
name: Mirror to chookspace
on:
push:
branches: ['**']
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout full history
uses: actions/checkout@v4
with:
fetch-depth: 0 # Needed so we have the full commit graph, not a shallow clone
- name: Remove .github directory from working tree and index
run: |
git config user.email "mirror-bot@celnix.dev"
git config user.name "Mirror Bot"
# Stage the deletion of .github without touching the actual remote HEAD
# We do this on a detached scratch branch so we don't dirty main/master
git checkout --detach HEAD
git rm -r --cached .github
git commit --allow-empty -m "chore: strip .github for mirror push"
- name: Push to chookspace
env:
MIRROR_TOKEN: ${{ secrets.CHOOKSPACE_TOKEN }}
MIRROR_USER: ${{ secrets.CHOOKSPACE_USER }}
run: |
# Inject credentials into the remote URL — never hardcode these
git remote add chookspace "https://${MIRROR_USER}:${MIRROR_TOKEN}@chookspace.com/cairo/splain.git"
# Push the current detached HEAD to the matching branch on the mirror
# GITHUB_REF_NAME is the branch name that triggered the push (e.g. "main")
git push chookspace "HEAD:refs/heads/${GITHUB_REF_NAME}" --force

View File

@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 4.2)
# Project configuration # Project configuration
# ============================ # ============================
project( project(
splain splainn
VERSION 1.0 VERSION 1.0
LANGUAGES CXX LANGUAGES CXX
) )