From 811374782b74073a1b915eb92e220e0ab641c8da Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Wed, 18 Feb 2026 17:56:08 -0500 Subject: [PATCH] feat(ci): auto-deploy to aur --- .github/workflows/aur.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/aur.yml diff --git a/.github/workflows/aur.yml b/.github/workflows/aur.yml new file mode 100644 index 0000000..df31bc3 --- /dev/null +++ b/.github/workflows/aur.yml @@ -0,0 +1,31 @@ +name: Update AUR + +on: + push: + branches: [main] + paths: [PKGBUILD] + +jobs: + publish: + runs-on: ubuntu-latest + container: archlinux:base-devel + steps: + - uses: actions/checkout@v4 + + - run: makepkg --printsrcinfo > .SRCINFO + + - name: Push to AUR + env: + AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }} + run: | + pacman -Sy --noconfirm openssh git + mkdir -p ~/.ssh + echo "$AUR_SSH_KEY" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts + git config user.name "Barrett Ruth" + git config user.email "barrettruth@gmail.com" + git remote add aur ssh://aur@aur.archlinux.org/sioyek-dev.git + git add .SRCINFO + git diff --cached --quiet || git commit -m "update .SRCINFO" + git push aur HEAD:main