Skip to content

Commit

Permalink
fix: move aur publish into aur.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
InioX committed Mar 26, 2024
1 parent 16ef607 commit 8a27432
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/aur.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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

0 comments on commit 8a27432

Please sign in to comment.