-
Notifications
You must be signed in to change notification settings - Fork 217
41 lines (37 loc) · 1.01 KB
/
doc.yml
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
37
38
39
40
41
name: "Doc"
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
jobs:
build_and_publish_doc:
name: Build Doc
runs-on: [self-hosted, 1ES.Pool=gha-virtual-ccf-sub]
container:
image: ghcr.io/microsoft/ccf/ci/default:build-26-06-2024
steps:
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build Documentation
run: |
set -x
python3.8 -m venv env
source env/bin/activate
pip install -U pip
pip install -U -e ./python
pip install -U -r doc/requirements.txt
pip install -U -r doc/historical_ccf_requirements.txt
sphinx-multiversion -D smv_remote_whitelist=origin doc build/html
shell: bash
- name: Set up top-level directory
run: |
set -x
cd build/html
touch .nojekyll
cp ../../doc/index.html .
ls -la
shell: bash