diff options
| author | 2026-02-24 16:40:05 +0800 | |
|---|---|---|
| committer | 2026-02-24 16:40:05 +0800 | |
| commit | bcaa036b892a3070fb18ace1a05e33717ea19304 (patch) | |
| tree | 4a46a65b70e5e82c51daf8e4980c2e7939ddaefc | |
| parent | a8e8e6450bc0f7290ce6cb86f51b234e9ea74cb6 (diff) | |
| download | soon-bcaa036b892a3070fb18ace1a05e33717ea19304.tar.gz soon-bcaa036b892a3070fb18ace1a05e33717ea19304.zip | |
Update AUR workflow to use makepkg and Arch Linux container
| -rw-r--r-- | .github/workflows/publish-aur.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/publish-aur.yml b/.github/workflows/publish-aur.yml index 87c4f49..addc9e3 100644 --- a/.github/workflows/publish-aur.yml +++ b/.github/workflows/publish-aur.yml @@ -16,6 +16,8 @@ on: jobs: aur: runs-on: ubuntu-latest + container: + image: archlinux:latest if: | github.event_name == 'workflow_dispatch' && github.event.inputs.tag != '' || startsWith(github.ref, 'refs/tags/v') @@ -33,7 +35,7 @@ jobs: ssh-keyscan -t ed25519 aur.archlinux.org >> ~/.ssh/known_hosts - name: Install makepkg - run: sudo apt-get update && sudo apt-get install -y archlinux-keyring pkgbuild-utils + run: sudo apt-get update && sudo apt-get install -y makepkg archlinux-keyring - name: Clone AUR repository and update PKGBUILD run: | @@ -47,7 +49,7 @@ jobs: fi VERSION="${TAG#v}" sed -i "s/^pkgver=.*/pkgver=${VERSION}/" PKGBUILD - mksrcinfo --printsrcinfo > .SRCINFO + makepkg --printsrcinfo > .SRCINFO git add PKGBUILD .SRCINFO if git diff --cached --quiet; then echo "No changes to commit" |