File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments