Skip to content

Commit 5b5cc67

Browse files
committed
Push to Codeberg
1 parent 93e4b7a commit 5b5cc67

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed
Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Mirror to Codeberg + PrivacyGuides
1+
name: Mirror to Codeberg
22

33
on:
44
push:
@@ -13,26 +13,17 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v3
1515
with:
16-
fetch-depth: 0 #test
16+
fetch-depth: 0
1717

1818
- name: Set up SSH
1919
run: |
2020
mkdir -p ~/.ssh
21-
echo "${{ secrets.CODEBERG_SSH_KEY }}" > ~/.ssh/id_ed25519_codeberg
22-
chmod 600 ~/.ssh/id_ed25519_codeberg
21+
echo "${{ secrets.CODEBERG_SSH_KEY }}" > ~/.ssh/id_ed25519
22+
chmod 600 ~/.ssh/id_ed25519
2323
ssh-keyscan codeberg.org >> ~/.ssh/known_hosts
24-
echo "${{ secrets.PRIVACYGUIDES_SSH_KEY }}" > ~/.ssh/id_ed25519_privacy
25-
chmod 600 ~/.ssh/id_ed25519_privacy
26-
ssh-keyscan code.privacyguides.dev >> ~/.ssh/known_hosts
2724
2825
- name: Push to Codeberg
2926
run: |
3027
git remote remove codeberg || true
3128
git remote add codeberg [email protected]:SecureBitChat/securebit-chat.git
32-
GIT_SSH_COMMAND="ssh -i ~/.ssh/id_ed25519_codeberg" git push codeberg main --force
33-
34-
- name: Push to PrivacyGuides
35-
run: |
36-
git remote remove privacy || true
37-
git remote add privacy [email protected]:SecureBitChat/securebit-chat.git
38-
GIT_SSH_COMMAND="ssh -i ~/.ssh/id_ed25519_privacy" git push privacy main --force
29+
git push codeberg main --force

0 commit comments

Comments
 (0)