mirror of
https://github.com/zoriya/flood.git
synced 2025-12-05 23:06:20 +00:00
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
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/jc@linux.com/' ./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://aur@aur.archlinux.org/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
|