Skip to content

Distribute for Arch Linux #22

Distribute for Arch Linux

Distribute for Arch Linux #22

name: Distribute for Arch Linux
on:
workflow_dispatch:
workflow_run:
workflows: ['Release']
types:
- completed
jobs:
aur:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Update PKGBUILD for AUR
run: |
sed -i 's/pkgname=flood/pkgname=nodejs-flood/' ./distribution/archlinux/flood/PKGBUILD
sed -i 's/replace-with-your-name/Jesse Chan/' ./distribution/archlinux/flood/PKGBUILD
sed -i 's/to-be-determined@tbd/[email protected]/' ./distribution/archlinux/flood/PKGBUILD
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Publish to AUR
uses: docker/build-push-action@v5
with:
build-args: |
AUR_FOLDER=./flood
AUR_KEY=${{ secrets.AUR_KEY }}
AUR_REPO=ssh://[email protected]/nodejs-flood.git
AUR_USER=jesec
"COMMIT_USERNAME=""github-actions[bot]"""
"COMMIT_EMAIL=""41898282+github-actions[bot]@users.noreply.github.com"""
"COMMIT_MESSAGE=""Automatic update"""
context: ./distribution/archlinux
file: ./distribution/archlinux/Dockerfile.aur
platforms: linux/amd64