[workflow] add experimental AUR release workflow

OK, so I don't know how to test this, but *theoretically*, this should
automatically push releases to AUR.
This commit is contained in:
tobi-wan-kenobi 2022-09-17 16:12:29 +02:00
parent d94ee9416a
commit e5f36053af
3 changed files with 102 additions and 0 deletions

29
.github/workflows/aurpublish.yml vendored Normal file
View file

@ -0,0 +1,29 @@
---
name: Upload AUR Package
on:
release:
types: [created]
jobs:
aur-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Create PKGBUILD
run: |
python ./create-pkgbuild.py > ./PKGBUILD
- name: Publish AUR package
uses: KSXGitHub/github-actions-deploy-aur@v2.5.0
with:
pkgname: bumblebee-status
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