-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (34 loc) · 1.16 KB
/
ci.yml
File metadata and controls
36 lines (34 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: build
on: [push, pull_request]
jobs:
documentation-build:
name: "Website build"
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Prepare environment and run checks
run: |
python3 -m venv pyenv && . pyenv/bin/activate
pip3 install --upgrade pip
pip3 install sphinx sphinx_bootstrap_theme sphinxcontrib.jquery
mkdir build && cd "$_"
cmake ..
make
shell: bash
- name: Post Build
run: |
cd ${{ github.workspace }}/build
touch www/.nojekyll
rm -rf www/{.buildinfo,.doctrees}
- name: Deploy networkit.github.io 🚀
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.SECRET_DEPLOY_GITHUB_PAGES }}
external_repository: networkit/networkit.github.io
publish_branch: master
publish_dir: ./build/www
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'