-
Notifications
You must be signed in to change notification settings - Fork 32
58 lines (47 loc) · 1.58 KB
/
deploy_doc.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
name: Publish docs via GitHub Pages
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- master
tags: '*'
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
env:
CI: "true"
steps:
- name: Checkout master
uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: julia-actions/setup-julia@latest
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build python doc
run: |
pip install --upgrade pip
pip install sphinx-markdown-builder==0.5.5 sphinx-markdown-parser devito matplotlib
pip install "sphinx==3.1.0" "MarkupSafe==2.0.1" "jinja2<3.1"
make clean
make markdown
mv _build/markdown/pysource.md ../../docs/src/pysource.md
working-directory: src/pydocs/
- name: Build doc
run: |
pip install --upgrade jupyter Pygments
for f in *.ipynb;do jupyter nbconvert --to markdown --output-dir='../../docs/src/tutorials' $f; done
working-directory: examples/notebooks/
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
run: julia --project=docs/ docs/make.jl