File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Sphinx Build and Deploy
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ docs :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+ - uses : actions/setup-python@v5
18+ - name : Install dependencies
19+ run : |
20+ pip install sphinx sphinx_rtd_theme myst_parser
21+ - name : Build Sphinx for GitHub Pages
22+ run : |
23+ sphinx-build doc ../_build
24+ - name : Create .nojekyll
25+ run : |
26+ touch ../_build/.nojekyll
27+ - name : Commit and push changes
28+ run : |
29+ git checkout gh-pages
30+ cp ../_build ./
31+ git config --global user.name "CAMS SDD"
32+ git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
33+ git add ./.
34+ git commit -m "Autobuild latest version"
35+ git push
You can’t perform that action at this time.
0 commit comments