From 5e59bf893830e52dd21ad4f8e041b649954d1011 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Tue, 4 Feb 2025 17:25:18 -0700 Subject: [PATCH] chore: add .build.yml to mirror to github --- .build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..acef0dc --- /dev/null +++ b/.build.yml @@ -0,0 +1,27 @@ +image: alpine/edge +packages: + - git + +secrets: + - 88cce185-d2ec-4573-9546-e33f36f79bbf + +environment: + # repo and user names on both sr.ht and github + REPO: typminion + USER: swaits + +tasks: + - fetch-all-branches: | + cd "$HOME/$REPO" + git fetch origin '+refs/heads/*:refs/heads/*' '+refs/tags/*:refs/tags/*' --prune + + - get-github-public-key: | + ssh-keyscan -t rsa github.com >> "$HOME/.ssh/known_hosts" + + - add-github-remote: | + cd "$HOME/$REPO" + git remote add github "git@github.com:$USER/$REPO.git" + + - mirror-to-github: | + cd "$HOME/$REPO" + git push --mirror github