Skip to content

Initial commit

Initial commit #30

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- main
env:
CI_XBPS_PACKAGES: "xdeb-install"
XBPS_ALLOW_CHROOT_BREAKOUT: "yes"
jobs:
build:
permissions:
packages: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Create XBPS packages
run: |
mkdir ./void
wget https://repo-default.voidlinux.org/live/current/void-x86_64-ROOTFS-20230628.tar.xz
tar xvf void-x86_64-ROOTFS-20230628.tar.xz -C ./void
mount -t proc none ./void/proc
mount -t sysfs none ./void/sys
mount --rbind /dev ./void/dev
mount --rbind /run ./void/run
cp /etc/resolv.conf ./void/etc/resolv.conf
cp scripts/create_packages.sh ./void/tmp
mv void-packages ./void/tmp/void-packages
chroot ./void xbps-install -Su xbps
chroot ./void xbps-install -u
chroot ./void xbps-install base-system
chroot ./void xbps-remove base-voidstrap
chroot ./void cd /tmp && ./create_packages.sh
umount -R ./void
rm -rf .void
mv ./void/tmp/repositories .
- name: Create XBPS repository
run: |
echo -n "${{ secrets.XBPS_REPOSITORY_KEY }}" > private.pem
./scripts/sign_repository.sh "${{ github.repository_owner }}" "${{ github.event.pusher.email }}"
- name: Build apindex
run: |
cd apindex
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/tmp/apindex
make install
- name: Generate index.html
run: cd repository && /tmp/apindex/bin/apindex .
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: repository
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2