Merge pull request #25 from linkml/faq #44
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: Sphinx Documentation | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3.1.0 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3. | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.3.2 | |
- name: install | |
run: poetry install --with docs --all-extras | |
- name: Install dependencies for nbsphinx | |
run: | | |
sudo apt update | |
sudo apt install -y pandoc | |
- name: Run Pandoc | |
run: | | |
pandoc --version | |
- name: Build documentation. | |
run: | | |
mkdir gh-pages | |
touch gh-pages/.nojekyll | |
cd docs/ | |
poetry run sphinx-build -b html . _build | |
cp -r _build/* ../gh-pages/ | |
- name: Deploy documentation. | |
if: ${{ github.event_name == 'push' }} | |
uses: JamesIves/github-pages-deploy-action@v4.3.0 | |
with: | |
branch: gh-pages | |
force: true | |
folder: gh-pages |