From 6dc7727629ebd11a621b489f41ca65735f776eb5 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Wed, 20 May 2026 10:57:39 -0500 Subject: [PATCH] configure mirroring to github --- .tangled/workflows/mirror.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .tangled/workflows/mirror.yml diff --git a/.tangled/workflows/mirror.yml b/.tangled/workflows/mirror.yml new file mode 100644 index 0000000..2083374 --- /dev/null +++ b/.tangled/workflows/mirror.yml @@ -0,0 +1,37 @@ +# SPDX-FileCopyrightText: © 2025 Jeffrey C. Ollie +# SPDX-License-Identifier: MIT + +when: + - event: + - push + branch: + - main + - event: + - manual + +engine: nixery + +dependencies: + nixpkgs: + - openssh + +environment: + TERM: "dumb" + NO_COLOR: "true" + +steps: + - name: Configure SSH + command: | + mkdir ~/.ssh + chmod 0700 ~/.ssh + echo "$GITHUB_DEPLOY_KEY" > .ssh/github_deploy_key + chmod 0600 ~/.ssh/github_deploy_key + echo > ~/.ssh/config << EOF + Host github.com + IdentityFile ~/.ssh/github_deploy_key + EOF + + - name: Push to GitHub + command: | + git remote add github git@github.com:jcollie/uuid.zig.git + git push github main -- 2.51.2