-
Notifications
You must be signed in to change notification settings - Fork 16
35 lines (29 loc) · 953 Bytes
/
aur.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Release to AUR
on:
release:
types: [published]
workflow_dispatch:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install cargo-aur
run: cargo install cargo-aur
- name: Create PKGBUILD
run: cargo aur
- name: Upload assets
run: gh release upload $GITHUB_REF ./target/cargo-aur/*.tar.gz
- name: Publish AUR package
uses: KSXGitHub/[email protected]
with:
pkgname: matugen-bin
pkgbuild: ./target/cargo-aur/PKGBUILD
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_message: 'chore(aur): update package'
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519