Skip to content

test: fix offline maps test #61

test: fix offline maps test

test: fix offline maps test #61

name: Mirror to Codeberg
permissions:
contents: read
on:
push:
branches:
- main
workflow_dispatch:
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout full history
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure SSH
run: |
mkdir -p ~/.ssh
cat > ~/.ssh/codeberg <<'EOF'
${{ secrets.CODEBERG_SSH_KEY }}
EOF
chmod 600 ~/.ssh/codeberg
ssh-keyscan codeberg.org >> ~/.ssh/known_hosts
- name: Verify Codeberg SSH key fingerprint
run: |
ssh-keygen -y -f ~/.ssh/codeberg > ~/.ssh/codeberg.pub
ssh-keygen -lf ~/.ssh/codeberg.pub
- name: Push to Codeberg
run: |
git remote add codeberg git@codeberg.org:kylecorry31/Trail-Sense.git
GIT_SSH_COMMAND="ssh -i ~/.ssh/codeberg -o IdentitiesOnly=yes" \
git push --mirror codeberg