-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) · 1.24 KB
/
deploy-docs.yml
File metadata and controls
48 lines (39 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Deploy Sphinx Docs
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout do código
uses: actions/checkout@v4
- name: Configurar Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Gerar arquivo de versão
run: echo "0.0.0-dev" > VERSION.txt
- name: Instalar dependências
run: |
python -m pip install --upgrade pip
pip install .
pip install sphinx pydata_sphinx_theme sphinx-rtd-theme \
sphinx-prompt sphinx_copybutton sphinxext-opengraph \
matplotlib sphinxcontrib-sass sphinx_remove_toctrees \
sphinx_design numpydoc sphinx_sitemap
- name: Conferir pacotes instalados
run: |
pip list
pip show mlquantify
python -c "import mlquantify; print(mlquantify.__file__)"
- name: Construir documentação
run: |
sphinx-build docs/source docs/build/html
- name: Publicar no GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs/build/html
clean: true