kvmfr: configure libvirt deviceACL and apparmor (#50) #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "pages" | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 | |
with: | |
install_url: "https://releases.nixos.org/nix/nix-2.13.3/install" | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: "system-features = nixos-test kvm" | |
- name: Configure binary cache | |
uses: cachix/cachix-action@v12 | |
with: | |
name: nixos-vfio | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
- name: Build docs | |
id: build | |
run: nix build .#docs-book | |
- name: Prepare assets for upload | |
run: cp -r --dereference --no-preserve=mode,ownership result/ public/ | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: public/ | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |