Files
euri-iso/.github/workflows/build.yml
T

65 lines
1.6 KiB
YAML

name: Build ISO
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux:latest
options: --privileged
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
pacman -Syu --noconfirm --needed \
archiso \
git \
squashfs-tools \
wget \
imagemagick \
sudo \
base-devel \
python-pip
- name: Create build user
run: |
useradd -m builder
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
chown -R builder:builder .
- name: Prepare
run: sudo -u builder ./prepare.sh
- name: Build ISO
run: ./mkarchiso -v "."
- name: Upload ISO artifact
uses: actions/upload-artifact@v4
with:
name: Antergos-NeXT-ISO
path: out/
- name: Upload to Internet Archive
if: github.ref == 'refs/heads/master'
env:
IA_EMAIL: ${{ secrets.IA_EMAIL }}
IA_PASSWORD: ${{ secrets.IA_PASSWORD }}
run: |
pip install internetarchive
ia configure --email="$IA_EMAIL" --password="$IA_PASSWORD"
ISO=$(ls out/*.iso | head -1)
ia upload antergos-next "$ISO" \
--metadata="title:Antergos NeXT Live ISO" \
--metadata="creator:Antergos NeXT" \
--metadata="date:$(date +%Y-%m-%d)" \
--metadata="description:Antergos NeXT live installation ISO based on Arch Linux" \
--metadata="collection:opensource"