Skip to content

Fix TestPypi publish on push #57

Fix TestPypi publish on push

Fix TestPypi publish on push #57

Workflow file for this run

# This workflow will build sphinx documentation and push it to gh-page
# From: https://blog.flozz.fr/2020/09/21/deployer-automatiquement-sur-github-pages-avec-github-actions/
name: "Build and deploy Github pages"
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
persist-credentials: false
- name: "Set up Python"
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: "Install Python dependencies"
run: |
pip3 install setuptools
pip3 install sphinx sphinx-autodoc-typehints myst-parser
- name: "Build Sphinx Doc"
run: |
sphinx-apidoc -f -e -o docs/source . tests setup.py
make -C docs html
- name: "Deploy Github Pages"
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/build/html/