Add AUR public github action

This commit is contained in:
Lennard Kittner
2026-02-20 21:15:38 +01:00
parent d244e189a7
commit ad5eb52ad2

View File

@@ -33,3 +33,26 @@ jobs:
run: cargo build --verbose
- name: test
run: cargo test
publish-aur:
runs-on: ubuntu-latest
needs: [build-linux, build-macos]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- name: Clone AUR repo
run: git clone https://aur.archlinux.org/hyperheadset-git.git aur-pkg
- name: Publish to AUR
uses: KSXGitHub/github-actions-deploy-aur@v4.1.1
with:
pkgname: hyperheadset-git
pkgbuild: ./aur-pkg/PKGBUILD
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_message: Automatic update to latest
updpkgsums: false
allow_empty_commits: false