Need use pandoc to convert .ipynb in sphinx #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish documentation website | |
# on: | |
# push: | |
# branches: | |
# - main | |
on: [push] | |
jobs: | |
publish-docs: | |
name: Publish docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pandoc | |
run: | | |
sudo apt-get install --no-install-recommends pandoc | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
cache: poetry | |
- name: Install dependencies | |
run: poetry install | |
- name: Build sphinx documentation website | |
run: poetry run poe docs | |
- name: Publish documentation website to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/_build | |
commit_message: ${{ github.event.head_commit.message }} |