Skip to content

Commit d3588a6

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

File tree

1 file changed

+10
-27
lines changed

1 file changed

+10
-27
lines changed

.github/workflows/publish-aur.yml

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,13 @@ jobs:
1313
- name: Checkout repository
1414
uses: actions/checkout@v4
1515

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"
24-
25-
- name: Clone AUR repository
26-
run: |
27-
git clone ssh://[email protected]/python-i686-bin.git aur-repo
28-
cd aur-repo
29-
30-
- name: Copy necessary files
31-
run: |
32-
cp PKGBUILD .SRCINFO aur-repo/
33-
cd aur-repo
34-
git add PKGBUILD .SRCINFO
35-
36-
- name: Commit and push
37-
run: |
38-
cd aur-repo
39-
git config --global user.name "GitHub Actions"
40-
git config --global user.email "[email protected]"
41-
git commit -m "Automated update: PKGBUILD and .SRCINFO" || echo "No changes to commit"
42-
git push
16+
- name: Publish AUR package
17+
uses: KSXGitHub/github-actions-deploy-aur@master
18+
with:
19+
pkgname: python-i686-bin
20+
pkgbuild: ./PKGBUILD
21+
commit_username: GitHub Actions
22+
commit_email: [email protected]
23+
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
24+
commit_message: Update AUR package
25+
ssh_keyscan_types: rsa,ecdsa,ed25519

0 commit comments

Comments
 (0)