ci: simplify aur publish workflow

This commit is contained in:
Kevin Yue committed 2026-05-07 09:40:30 +08:00
1 parent 9591ca287e
commit d1401171d8
1 file changed
+1 -10
+1 -10
View File
@@ -49,13 +49,11 @@ jobs:
desktop-file-utils \
file \
git \
jq \
libappindicator-gtk3 \
libsecret \
libxml2 \
namcap \
openconnect \
openssh \
openssl \
pkgconf \
librsvg \
@@ -96,7 +94,7 @@ jobs:
- name: Run namcap
run: |
cd "$AUR_PACKAGE_DIR"
runuser -u builder -- namcap PKGBUILD .SRCINFO
runuser -u builder -- namcap PKGBUILD
- name: Build package
if: ${{ github.event_name == 'workflow_dispatch' && inputs['build-package'] }}
@@ -118,13 +116,6 @@ jobs:
printf '%s\n' "$AUR_SSH_PRIVATE_KEY" > ~/.ssh/aur
chmod 600 ~/.ssh/aur
ssh-keyscan -t rsa,ecdsa,ed25519 aur.archlinux.org > ~/.ssh/known_hosts
printf '%s\n' \
"Host aur.archlinux.org" \
" IdentityFile ~/.ssh/aur" \
" UserKnownHostsFile ~/.ssh/known_hosts" \
" User aur" \
" StrictHostKeyChecking yes" \
> ~/.ssh/config
- name: Publish to AUR
if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish }}