add publish to AUR workflow

This commit is contained in:
Carson McManus 2021-11-14 14:42:57 -05:00
parent 672e4bbce8
commit 033ef7a4a1

28
.github/workflows/aur.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Publish to AUR
on:
push:
branches:
- master
paths-ignore:
- '**/.gitignore'
- '.vscode/**'
- '**/*.md'
- 'scripts/full-release.sh'
- 'scripts/package-deb.sh'
- 'src/fixtures/**'
jobs:
publish-to-aur:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Archlinux
run: curl -L https://github.com/zaoqi/github-actions-archlinux/raw/master/install.sh | sh
- name: Install dependencies
run: sudo pacman -Syu --noconfirm base-devel git
- name: Configure git
run: |
git config --global user.email "{{ github.actor }}@users.noreply.github.com"
git config --global user.name "{{ github.actor }}"
- name: Publish to AUR
run: ./scripts/publish-aur.sh