-
Notifications
You must be signed in to change notification settings - Fork 2
81 lines (65 loc) · 1.8 KB
/
docs.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Deploy Sphinx documentation to Pages
on:
push:
branches: [main, ghpages]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Print current working directory
run: |
echo "Current working directory:"
pwd
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx pydata_sphinx_theme
- name: Build documentation
run: |
cd docs
make html
- name: List files for debugging
run: |
echo "Listing all files and directories after build:"
find "$(pwd)" -type d -print
find "$(pwd)" -type f -print
- name: Upload documentation
uses: actions/upload-artifact@v2
with:
name: built-docs
path: docs/_build/html
deploy:
runs-on: ubuntu-20.04
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download documentation
uses: actions/download-artifact@v2
with:
name: built-docs
path: ./built-docs
- name: List downloaded documentation
run: |
echo "Listing contents of downloaded built-docs:"
find "$(pwd)/built-docs" -type d -print
find "$(pwd)/built-docs" -type f -print
- name: Deploy to GitHub Pages
id: deployment
uses: sphinx-notes/pages@v3
with:
documentation_path: 'tmp/sphinxnotes-pages'
publish: 'true'