Skip to content

update docs yaml

update docs yaml #18

Workflow file for this run

name: Zmodn
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install pandoc
run: |
sudo apt-get update
sudo apt-get install -y pandoc
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: |
poetry install --with dev
poetry run pip install sphinx # Asegurarse de que Sphinx esté instalado
poetry run pip list # Listar todos los paquetes instalados
- name: Check Sphinx installation
run: |
poetry run which sphinx-build
poetry run sphinx-build --version
- name: Sphinx build
run: |
poetry run sphinx-build -b html docs _build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.python-version == '3.11' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true