Skip to content

Commit f6dcb2b

Browse files
committed
test
1 parent cb16b8f commit f6dcb2b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/aur-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,16 @@ jobs:
4343
- name: Setup SSH for AUR
4444
run: |
4545
mkdir -p ~/.ssh
46+
4647
echo "${{ secrets.AUR_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
4748
chmod 600 ~/.ssh/id_ed25519
4849
49-
echo "SG9zdCBhdXIuYXJjaGxpbnV4Lm9yZwogICAgSG9zdE5hbWUgYXVyLmFyY2hsaW51eC5vcmcKICAgIFVzZXIgYXVyCiAgICBJZGVudGl0eUZpbGUgfi8uc3NoL2lkX2VkMjU1MTk=" \
50-
| base64 -d > ~/.ssh/config
50+
printf "Host aur.archlinux.org\nHostName aur.archlinux.org\nUser aur\nIdentityFile ~/.ssh/id_ed25519\nStrictHostKeyChecking no\n" > ~/.ssh/config
5151
52-
ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
53-
chmod 644 ~/.ssh/known_hosts
52+
chmod 600 ~/.ssh/config
5453
54+
- name: Add AUR host key
55+
run: ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
5556

5657
- name: Clone AUR repository
5758
run: |

0 commit comments

Comments
 (0)