From 8a274321a795471b9852724ba89240e3dbcb22ff Mon Sep 17 00:00:00 2001 From: ini <81521595+InioX@users.noreply.github.com> Date: Tue, 26 Mar 2024 18:35:53 +0100 Subject: [PATCH] fix: move aur publish into `aur.yml` --- .github/workflows/aur.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..546027a --- /dev/null +++ b/.github/workflows/aur.yml @@ -0,0 +1,30 @@ +name: Release to AUR +on: + release: + types: [created] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Install cargo-aur + uses: baptiste0928/cargo-install@v3 + with: + crate: cargo-aur + + - name: Create PKGBUILD + run: cargo aur + + - name: cd into cargo-aur + run: cd ./target/cargo-aur/ + + - name: Publish AUR package + uses: KSXGitHub/github-actions-deploy-aur@v2.7.0 + with: + pkgname: matugen + pkgbuild: ./PKGBUILD + commit_username: ${{ secrets.AUR_USERNAME }} + commit_email: ${{ secrets.AUR_EMAIL }} + ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} + commit_message: Update AUR package + ssh_keyscan_types: rsa,dsa,ecdsa,ed25519