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

48 lines
973 B
YAML

name: Build Packages
on:
push:
branches: [main]
workflow_dispatch:
schedule:
- cron: "0 0 * * 1"
jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- uses: actions/checkout@v4
- name: Install deps
run: |
pacman -Syu --noconfirm --needed \
python-yaml \
git \
sudo \
base-devel
- name: Create builder user
run: |
useradd -m builder
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
- name: Build packages
run: python build-packages.py
- name: Set up repo
run: |
mkdir -p x86_64
cp /tmp/pkgout/*.pkg.tar.zst x86_64/
cd x86_64
repo-add antergos-pkgs.db.tar.gz *.pkg.tar.zst
- name: Deploy to Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./x86_64
keep_files: false