Skip to content

Commit 8c34074

Browse files
committed
Update publish-aur.yml
1 parent e646f48 commit 8c34074

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/publish-aur.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish to AUR
33
on:
44
push:
55
branches:
6-
- master
6+
- main # Adjust if necessary
77

88
jobs:
99
aur-push:
@@ -16,13 +16,16 @@ jobs:
1616
- name: Set up SSH
1717
run: |
1818
mkdir -p ~/.ssh
19-
echo "${{ secrets.AUR_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
19+
echo "${{ secrets.AUR_SSH_PRIVATE_KEY }}" | tr -d '\r' > ~/.ssh/id_ed25519
2020
chmod 600 ~/.ssh/id_ed25519
21+
ssh-keygen -y -f ~/.ssh/id_ed25519 > ~/.ssh/id_ed25519.pub # Ensure valid key
22+
eval "$(ssh-agent -s)"
23+
ssh-add ~/.ssh/id_ed25519
2124
ssh-keyscan -t ed25519 aur.archlinux.org >> ~/.ssh/known_hosts
2225
2326
- name: Clone AUR repository
2427
run: |
25-
git clone ssh://[email protected]/python-i686-bin.git aur-repo
28+
git clone ssh://[email protected]/YOUR-PACKAGE-NAME.git aur-repo
2629
cd aur-repo
2730
2831
- name: Copy necessary files

0 commit comments

Comments
 (0)