Skip to content

auto-update of tutos so people don't run out of date examples when fi… #26

auto-update of tutos so people don't run out of date examples when fi…

auto-update of tutos so people don't run out of date examples when fi… #26

Workflow file for this run

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@v1
- name: Set up Python 3.10
uses: actions/setup-python@v1
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@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site