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 \ desktop-file-utils \
file \ file \
git \ git \
jq \
libappindicator-gtk3 \ libappindicator-gtk3 \
libsecret \ libsecret \
libxml2 \ libxml2 \
namcap \ namcap \
openconnect \ openconnect \
openssh \
openssl \ openssl \
pkgconf \ pkgconf \
librsvg \ librsvg \
@@ -96,7 +94,7 @@ jobs:
- name: Run namcap - name: Run namcap
run: | run: |
cd "$AUR_PACKAGE_DIR" cd "$AUR_PACKAGE_DIR"
runuser -u builder -- namcap PKGBUILD .SRCINFO runuser -u builder -- namcap PKGBUILD
- name: Build package - name: Build package
if: ${{ github.event_name == 'workflow_dispatch' && inputs['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 printf '%s\n' "$AUR_SSH_PRIVATE_KEY" > ~/.ssh/aur
chmod 600 ~/.ssh/aur chmod 600 ~/.ssh/aur
ssh-keyscan -t rsa,ecdsa,ed25519 aur.archlinux.org > ~/.ssh/known_hosts 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 - name: Publish to AUR
if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish }} if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish }}