File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change 42
42
run : |
43
43
pytest plurals/tests.py
44
44
45
- build-and-deploy- docs :
45
+ build-docs :
46
46
runs-on : ubuntu-latest
47
47
needs : lint-and-test
48
+ if : github.event_name == 'pull_request' || github.event_name == 'push'
49
+
50
+ steps :
51
+ - name : Checkout repository
52
+ uses : actions/checkout@v3
53
+
54
+ - name : Set up Python
55
+ uses : actions/setup-python@v4
56
+ with :
57
+ python-version : ' 3.9'
58
+
59
+ - name : Install dependencies
60
+ run : |
61
+ python -m pip install --upgrade pip
62
+ pip install -r dev_requirements.txt
63
+ pip install sphinx sphinx_rtd_theme
64
+
65
+ - name : Build Sphinx documentation
66
+ run : |
67
+ cd docs
68
+ make html
69
+
70
+ deploy-docs :
71
+ runs-on : ubuntu-latest
72
+ needs : build-docs
73
+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
48
74
49
75
steps :
50
76
- name : Checkout repository
70
96
uses : peaceiris/actions-gh-pages@v3
71
97
with :
72
98
github_token : ${{ secrets.GITHUB_TOKEN }}
73
- publish_dir : docs/_build/html
99
+ publish_dir : docs/_build/html
You can’t perform that action at this time.
0 commit comments