GitHub Action
Build AUR package & push to the AUR
v0.2.0
Latest version
This action uses a purpose-built image to sanity-check, build and test an AUR package when it the upstream repository publishes a new release. It optionally pushes the update to the Arch User Repository.
Build and push from a subdirectory in the repository:
- name: build, test and push package
uses: glitchcrab/action-build-aur-package@main
with:
workdir: "./packagename-bin"
pushToAur: true
env:
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
GIT_USER: ${{ secrets.GIT_USER }}
Install additional packages required to build the package:
- name: build, test and push package
uses: glitchcrab/action-build-aur-package@main
with:
workdir: "./packagename-bin"
pushToAur: true
additionalPackages: "golangci-lint-bin go"
env:
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
GIT_USER: ${{ secrets.GIT_USER }}
- Description: 'Space-separated list of additional packages to install'
- Required: false
- Default: ''
- Description: 'Push changes to the AUR'
- Required: false
- Default: false
- Description: 'The directory to work in'
- Required: false
- Default: './'
Various secrets must be configured in the repo for this action to complete.
- Description: 'SSH private key with permissions to push to the AUR'
- Required: true
- Description: 'Username to configure Git with'
- Required: true
- Description: 'Email to configure Git with'
- Required: true