Push to PrivacyGuides

This commit is contained in:
lockbitchat
2025-10-15 04:41:05 -04:00
parent 03e06f59dc
commit fce18d27a5

View File

@@ -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