37 lines
No EOL
816 B
YAML
37 lines
No EOL
816 B
YAML
name: AUR Publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-and-publish:
|
|
runs-on: docker
|
|
container:
|
|
image: archlinux:base-devel
|
|
options: --privileged --net=host
|
|
env:
|
|
PKGDEST: ./build
|
|
|
|
steps:
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
whoami
|
|
pacman -Syu --noconfirm --noprogressbar
|
|
pacman -S --noconfirm --noprogressbar base-devel git devtools nodejs
|
|
|
|
- name: Checkout code
|
|
uses: https://code.forgejo.org/actions/checkout@v3
|
|
|
|
- name: xd
|
|
run: |
|
|
useradd -d /build -m build
|
|
echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
|
su build -c "mkdir -p ./build"
|
|
|
|
- name: Build package
|
|
run: |
|
|
export PKGDEST=${PKGDEST}
|
|
su build -c "/usr/bin/makepkg -s --noconfirm --noprogressbar" |