Skip to content

Bump codecov/codecov-action from 5.0.2 to 5.0.4 in /.github/workflows #19

Bump codecov/codecov-action from 5.0.2 to 5.0.4 in /.github/workflows

Bump codecov/codecov-action from 5.0.2 to 5.0.4 in /.github/workflows #19

Workflow file for this run

---
# https://coderefinery.github.io/documentation/gh_workflow/
name: Deploy Sphinx documentation to GitHub Pages
on: # yamllint disable-line rule:truthy
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
workflow_call:
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.x"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
# This is the version of the action for setting up Python,
# not the Python version.
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
- name: Install Sphinx
run: |
python -m pip install sphinx
python -m pip install sphinx_rtd_theme
python -m pip install --upgrade myst-parser
python -m pip install commonmark
python -m pip install docutils
- name: Check Sphinx version
run: |
sphinx-build --version
sphinx-quickstart --version
- name: Check whether MyST parser is available
run:
python -c "import myst_parser"
- name: Sphinx build
run: |
sphinx-build docs docs/_build --verbose
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/
force_orphan: false
keep_files: false