Skip to content

Commit

Permalink
Change to Gitub pages for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper Insinger committed Aug 6, 2024
1 parent e0b6551 commit 667e887
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 20 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/publish_docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build & Publish Docs

on:
push:
branches:
- docs

jobs:
build_and_test:
name: Build bruteforcer
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
path: src/
submodules: recursive

- name: Cache apt packages
uses: actions/cache@v2
with:
path: /var/cache/apt/archives
key: ${{ runner.os }}-apt-${{ hashFiles('/etc/apt/sources.list') }}

- name: Install prerequisites
run: |
sudo apt-get update
sudo apt-get install -y build-essential \
git \
cmake \
ninja-build \
python3 \
- name: Make build dir
run: mkdir src/build

- name: Generate build files
run: cmake -S src/ -B src/build -DCMAKE_GENERATOR=Ninja -DCMAKE_BUILD_TYPE=Debug -DNIC_TYPE=AF_XDP -DBUILD_DOCS=ON

- name: Build docs
run: ninja -C src/build Sphinx

- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: 'src/build/docs/sphinx/html'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
20 changes: 0 additions & 20 deletions .readthedocs.yaml

This file was deleted.

0 comments on commit 667e887

Please sign in to comment.