From 78358befdb364e54388b2b9557946f1c7c3fe97a Mon Sep 17 00:00:00 2001 From: BrookJeynes Date: Wed, 7 May 2025 13:39:40 +1000 Subject: [PATCH] ci(mirror): Mirror Jido to tangled.sh --- .github/workflows/mirror.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..5043cc2 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,29 @@ +name: Mirror to tangled + +on: + push: + branches: + - main + +jobs: + mirror: + runs-on: ubuntu-latest + + steps: + - name: Checkout source repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up SSH key + run: | + mkdir -p ~/.ssh + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan -H tangled.sh >> ~/.ssh/known_hosts + shell: bash + + - name: Mirror + run: | + git remote add tangled git@tangled.sh:brookjeynes.dev/jido + git push --mirror tangled -- 2.51.2