-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (55 loc) · 1.63 KB
/
website.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: build_website
on:
push:
branches:
- main
permissions:
contents: write
deployments: write
pages: write
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
deployments: write
pages: write
steps:
# Fetch CUDA toolkit using Jimver/cuda-toolkit
- name: Fetch CUDA toolkit
uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '12.1.0'
- name: Check nvcc version
run: nvcc -V
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install development and distributions version
run: |
pip install --upgrade pip
git submodule update --init --recursive
pip install .[docs]
- name: Setup pandoc
uses: siacodelabs/setup-pandoc@v1
with:
xelatex: true.
# didn't need to change anything here, but had to add sphinx.ext.githubpages
# to my conf.py extensions list. that fixes the broken uploads
- name: Building documentation
run: |
cd doc
make html
# still need to build and set the PAT to get a rebuild on the pages job,
# apart from that quite clean and nice
- name: GitHub Pages Action
#if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/_build/html
publish_branch: gh-pages
cname: cugbasis.qcdevs.org