From fce18d27a57e9de472a171e1529d7a4cfa252e0f Mon Sep 17 00:00:00 2001 From: lockbitchat Date: Wed, 15 Oct 2025 04:41:05 -0400 Subject: [PATCH] Push to PrivacyGuides --- .github/workflows/mirror-to-codeberg.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/mirror-to-codeberg.yml b/.github/workflows/mirror-to-codeberg.yml index 1d2643c..2ee81ff 100644 --- a/.github/workflows/mirror-to-codeberg.yml +++ b/.github/workflows/mirror-to-codeberg.yml @@ -1,4 +1,4 @@ -name: Mirror to Codeberg +name: Mirror to Codeberg + PrivacyGuides on: push: @@ -18,12 +18,21 @@ jobs: - name: Set up SSH run: | mkdir -p ~/.ssh - echo "${{ secrets.CODEBERG_SSH_KEY }}" > ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 + echo "${{ secrets.CODEBERG_SSH_KEY }}" > ~/.ssh/id_ed25519_codeberg + chmod 600 ~/.ssh/id_ed25519_codeberg ssh-keyscan codeberg.org >> ~/.ssh/known_hosts + echo "${{ secrets.PRIVACYGUIDES_SSH_KEY }}" > ~/.ssh/id_ed25519_privacy + chmod 600 ~/.ssh/id_ed25519_privacy + ssh-keyscan code.privacyguides.dev >> ~/.ssh/known_hosts - name: Push to Codeberg run: | git remote remove codeberg || true git remote add codeberg git@codeberg.org:SecureBitChat/securebit-chat.git - git push codeberg main --force + GIT_SSH_COMMAND="ssh -i ~/.ssh/id_ed25519_codeberg" git push codeberg main --force + + - name: Push to PrivacyGuides + run: | + git remote remove privacy || true + git remote add privacy git@code.privacyguides.dev:SecureBitChat/securebit-chat.git + GIT_SSH_COMMAND="ssh -i ~/.ssh/id_ed25519_privacy" git push privacy main --force