Debian Codegraph @

subprojects/meson-docs/tools/ci/push_to_gh_mirror.sh

raw
1 #!/bin/sh
2 # SPDX-FileCopyrightText: Stone Tickle <[email protected]>
3 # SPDX-License-Identifier: GPL-3.0-only
4
5 set -eux
6
7 if [ ! -d ~/.ssh ]; then
8 exit 0
9 fi
10
11 cat >> ~/.ssh/config <<EOF
12 Host github.com
13 IdentityFile ~/.ssh/9ba5eb75-1169-44f2-b69c-9f10d73de0d0
14 IdentitiesOnly yes
15 StrictHostKeyChecking no
16 EOF
17
18 chmod 600 ~/.ssh/config
19
20 git remote add github [email protected]:muon-build/meson-docs.git
21 git push --force --mirror github