Skip to content

Commit e646f48

Browse files
committed
Create publish-aur.yml
1 parent 010c7f4 commit e646f48

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/publish-aur.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish to AUR
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
aur-push:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up SSH
17+
run: |
18+
mkdir -p ~/.ssh
19+
echo "${{ secrets.AUR_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
20+
chmod 600 ~/.ssh/id_ed25519
21+
ssh-keyscan -t ed25519 aur.archlinux.org >> ~/.ssh/known_hosts
22+
23+
- name: Clone AUR repository
24+
run: |
25+
git clone ssh://[email protected]/python-i686-bin.git aur-repo
26+
cd aur-repo
27+
28+
- name: Copy necessary files
29+
run: |
30+
cp PKGBUILD .SRCINFO aur-repo/
31+
cd aur-repo
32+
git add PKGBUILD .SRCINFO
33+
34+
- name: Commit and push
35+
run: |
36+
cd aur-repo
37+
git config --global user.name "GitHub Actions"
38+
git config --global user.email "[email protected]"
39+
git commit -m "Automated update: PKGBUILD and .SRCINFO" || echo "No changes to commit"
40+
git push

0 commit comments

Comments
 (0)