-
Notifications
You must be signed in to change notification settings - Fork 69
40 lines (34 loc) · 1.13 KB
/
aur-release.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
36
37
38
39
40
name: Release on AUR
on:
workflow_dispatch:
workflow_run:
workflows: ["Release on PyPI"]
branches: [main]
types:
- completed
jobs:
aur-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- name: Install and fix pip2pkgbuild
run: |
git clone https://github.com/wenLiangcan/pip2pkgbuild.git
sed -i "s/\/usr\/share\/licenses\/common/\//g" pip2pkgbuild/pip2pkgbuild/pip2pkgbuild.py
- name: Create PKGBUILD
run: |
python3 pip2pkgbuild/pip2pkgbuild/pip2pkgbuild.py --pep517 recoverpy
- name: Fix license
run: |
sed -i "s/license\=$PARTITION_COLUMN.*/license\=(GNU GPLv3)/" PKGBUILD
- name: Publish AUR package
uses: KSXGitHub/[email protected]
with:
pkgname: python-recoverpy
pkgbuild: ./PKGBUILD
commit_username: PabloLec
commit_email: [email protected]
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_message: Update AUR package
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519