Skip to content

polish(pu): polish deploy.yml for docs #7

polish(pu): polish deploy.yml for docs

polish(pu): polish deploy.yml for docs #7

Workflow file for this run

name: Deploy Sphinx Docs to GitHub Pages
on:
push:
branches:
- dev-doc
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade -r requirements-doc.txt
pip install -e .
pip install sphinx sphinx-rtd-theme recommonmark
- name: Build the Sphinx documentation
run: |
cd docs/en
make html
cp ../../.nojekyll ./build/html/.nojekyll
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: github-pages
path: docs/en/build/html
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}