Skip to content

Commit b48c0c6

Browse files
committed
Update publish-aur.yml
1 parent 3272ad4 commit b48c0c6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/publish-aur.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
pull_request:
66
workflow_dispatch:
77

8-
98
jobs:
109
aur-push:
1110
runs-on: ubuntu-latest
@@ -14,14 +13,17 @@ jobs:
1413
- name: Checkout repository
1514
uses: actions/checkout@v4
1615

17-
- uses: webfactory/[email protected]
18-
with:
19-
ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
16+
- name: Setup SSH
17+
run: |
18+
mkdir -p ~/.ssh
19+
echo "${{ secrets.AUR_SSH_PRIVATE_KEY }}" > ~/.ssh/id_aur
20+
chmod 600 ~/.ssh/id_aur
21+
ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
22+
chmod 644 ~/.ssh/known_hosts
23+
export GIT_SSH_COMMAND="ssh -i ~/.ssh/id_aur"
2024
2125
- name: Clone AUR repository
2226
run: |
23-
echo -e "\nHost aur.archlinux.org\n IdentityFile ~/.ssh/id_ed25519\n User aur" >> ~/.ssh/config
24-
2527
git clone ssh://[email protected]/python-i686-bin.git aur-repo
2628
cd aur-repo
2729

0 commit comments

Comments
 (0)