-
Notifications
You must be signed in to change notification settings - Fork 135
38 lines (33 loc) · 1.21 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
name: Distribute for Arch Linux
on:
workflow_dispatch:
workflow_run:
workflows: ['Release']
types:
- completed
jobs:
aur:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- 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@v2
- name: Publish to AUR
uses: docker/build-push-action@v4
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