Allow releasing packages to the AUR
All original work by KSXGitHub was released under the MIT license. All of the added work is released under the GPL license
This workflow is heavily based on KSXGitHub/github-actions-deploy-aur
Required AUR package name.
Required Path to PKGBUILD file. This file is often generated by prior steps.
Required The username to use when creating the new commit.
Required The email to use when creating the new commit.
Required Your private key with access to AUR package.
Optional Commit message to use when creating the new commit.
Optional Allow empty commits, i.e. commits with no change. The default value is true
.
Optional Use --force
when push to the AUR. The default value is false
.
Optional Comma-separated list of types to use when adding aur.archlinux.org to known hosts.
name: aur-release
on:
push:
tags:
- '*'
jobs:
aur-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Release AUR package
uses: jbouter/aur-releaser@<TAG>
with:
pkgname: my-awesome-package
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
Note: Replace <TAG>
in the above code snippet with a tag of this repo.
Tip: To create secrets (such as secrets.AUR_USERNAME
, secrets.AUR_EMAIL
, and secrets.AUR_SSH_PRIVATE_KEY
above), go to $YOUR_GITHUB_REPO_URL/settings/secrets
. Read this for more information.
Tip: This action does not generate PKGBUILD for you, you must generate it yourself (e.g. by using actions before this action).