-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (48 loc) · 1.47 KB
/
hqs-build-deploy-all-docs.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
42
43
44
45
46
47
48
49
50
51
52
name: HQS build docs for all packages
on:
workflow_dispatch:
release:
types: [created]
jobs:
publish_documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
default: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip maturin
pip install qoqo_qiskit/[docs] qoqo_qiskit_devices/[docs]
- uses: peaceiris/actions-mdbook@v1
with:
version: latest
- name: build
run: |
# qoqo_qiskit
cd qoqo_qiskit/docs
python -m sphinx -T -E -b html . _build/html
cd ../../
cp -r ./qoqo_qiskit/docs/_build/html ./documentation/src/qoqo_qiskit_api
# qoqo_qiskit_devices
cd qoqo_qiskit_devices/docs
python -m sphinx -T -E -b html . _build/html
cd ../../
cp -r ./qoqo_qiskit_devices/docs/_build/html ./documentation/src/qoqo_qiskit_devices_api
# roqoqo_qiskit_devices
cargo doc --no-deps --package=roqoqo_qiskit_devices
cp -r ./target/doc/* ./documentation/src/roqoqo_qiskit_devices_api
# Generating doc
cd documentation/
mdbook build
- name: publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: documentation/book