-
Notifications
You must be signed in to change notification settings - Fork 13
38 lines (32 loc) · 1.01 KB
/
Copy pathdeploy_doc.yaml
File metadata and controls
38 lines (32 loc) · 1.01 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
37
38
name: Publish docs via GitHub Pages
on:
push:
branches:
- master
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install mkdocs jupyter pymdown-extensions python-markdown-math
- name: Build doc
run: |
for f in *.ipynb;do jupyter nbconvert --to markdown --output-dir='../../docs/tutorials' $f; done
jupyter nbconvert --to markdown --output-dir='../../docs/tutorials' ../acoustic/accuracy.ipynb
cp ../../README.md ../../docs/index.md
working-directory: seismic/tutorials/
- run: mkdocs build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site