diff --git a/.SRCINFO b/.SRCINFO index 7111974..e69de29 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,23 +0,0 @@ -pkgbase = sioyek-dev - pkgdesc = PDF viewer for research papers and technical books (development branch) - pkgver = 2.0.0.r1086.g719e2070 - pkgrel = 1 - url = https://github.com/ahrm/sioyek - arch = x86_64 - license = GPL3 - makedepends = git - depends = harfbuzz - depends = qt6-base - depends = qt6-3d - depends = qt6-declarative - depends = qt6-svg - depends = qt6-speech - depends = zlib - optdepends = qt6-wayland: Native Wayland (currently broken, uses XWayland by default) - provides = sioyek - conflicts = sioyek - conflicts = sioyek-git - source = git+https://github.com/ahrm/sioyek.git#branch=development - sha256sums = SKIP - -pkgname = sioyek-dev diff --git a/.github/workflows/aur.yml b/.github/workflows/aur.yml new file mode 100644 index 0000000..3f0e065 --- /dev/null +++ b/.github/workflows/aur.yml @@ -0,0 +1,41 @@ +name: Update AUR + +on: + workflow_dispatch: + push: + branches: [main] + paths: [PKGBUILD] + +jobs: + publish: + runs-on: ubuntu-latest + container: archlinux:base-devel + steps: + - run: pacman -Sy --noconfirm openssh git + + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - run: | + useradd -m builder + chown -R builder: . + su builder -c 'makepkg --printsrcinfo > .SRCINFO' + + - name: Push to AUR + env: + AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }} + run: | + mkdir -p /root/.ssh + echo "$AUR_SSH_KEY" > /root/.ssh/id_ed25519 + chmod 600 /root/.ssh/id_ed25519 + ssh-keyscan -t ed25519 aur.archlinux.org >> /root/.ssh/known_hosts 2>/dev/null + git config --global safe.directory '*' + git clone ssh://aur@aur.archlinux.org/sioyek-dev.git /tmp/aur + cp PKGBUILD .SRCINFO /tmp/aur/ + cd /tmp/aur + git config user.name "Barrett Ruth" + git config user.email "barrettruth@gmail.com" + git add PKGBUILD .SRCINFO + git diff --cached --quiet || git commit -m "update .SRCINFO" + git push