-
Notifications
You must be signed in to change notification settings - Fork 143
43 lines (37 loc) · 1.46 KB
/
distribute-archlinux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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: Parse version
id: parse_version
run: echo VERSION=`jq .version package.json -r` >> $GITHUB_OUTPUT
- 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
sed -i 's/version-to-be-replaced/${{ steps.parse_version.outputs.VERSION }}/' ./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