From 456545f0556be21c7ce54201d86606377f6f0c45 Mon Sep 17 00:00:00 2001 From: lockbitchat Date: Mon, 20 Oct 2025 12:34:10 -0400 Subject: [PATCH] Add GitHub Actions workflow to mirror repository to PrivacyGuides --- .github/workflows/mirror-to-privacyguides.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/mirror-to-privacyguides.yml diff --git a/.github/workflows/mirror-to-privacyguides.yml b/.github/workflows/mirror-to-privacyguides.yml new file mode 100644 index 0000000..573ebcd --- /dev/null +++ b/.github/workflows/mirror-to-privacyguides.yml @@ -0,0 +1,29 @@ +name: Mirror to PrivacyGuides + +on: + push: + branches: + - main + +jobs: + mirror: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up SSH + run: | + mkdir -p ~/.ssh + echo "${{ secrets.PRIVACYGUIDES_SSH_KEY }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan code.privacyguides.dev >> ~/.ssh/known_hosts + + - name: Push to PrivacyGuides + run: | + git remote remove privacyguides || true + git remote add privacyguides git@code.privacyguides.dev:SecureBitChat/securebit-chat.git + git push privacyguides main --force