name: Build and publish python-pywal # python-pywal was dropped from Arch's [extra] repo (AUR-only now), but the ISO # needs the `wal` binary (bread-theme extracts the wallpaper palette with it). # BOS keeps an in-house PKGBUILD and publishes to the [breadway] repo — same # pattern as calamares / bibata / powerlevel10k / yay-bin. on: push: paths: - 'packaging/python-pywal/**' workflow_dispatch: jobs: python-pywal: runs-on: [self-hosted, hestia] container: image: archlinux:latest steps: - name: Build and publish env: PUBLISH_TOKEN: ${{ secrets.REGISTRY_TOKEN }} run: | set -euo pipefail pacman -Syu --noconfirm base-devel git \ python python-build python-installer python-wheel python-setuptools imagemagick useradd -m builder git config --global --add safe.directory '*' # Clone the ref that triggered this run (not the default branch) — # same as the other packaging workflows. git clone --depth 1 --branch "${GITHUB_REF_NAME}" \ "https://git.breadway.dev/${GITHUB_REPOSITORY}.git" /home/builder/src chown -R builder:builder /home/builder/src su builder -c "cd /home/builder/src/packaging/python-pywal && makepkg -f --noconfirm" PKG=$(find /home/builder/src/packaging/python-pywal -name '*.pkg.tar.zst' | head -1) curl -fsS -X PUT \ -H "Authorization: token ${PUBLISH_TOKEN}" \ -H "Content-Type: application/octet-stream" \ --data-binary "@${PKG}" \ "https://git.breadway.dev/api/packages/Breadway/arch/os"