File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Deploy Documentation
2+
3+ on :
4+ push :
5+ branches :
6+ - master # Replace with your default branch if it's not 'master'
7+ workflow_dispatch :
8+
9+ jobs :
10+ build-and-deploy :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout Source
15+ uses : actions/checkout@v2
16+
17+ - name : Set up Python
18+ uses : actions/setup-python@v2
19+ with :
20+ python-version : ' 3.10' # Specify the Python version
21+
22+ - name : Install Dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ pip install sphinx
26+ # Install any other dependencies here
27+
28+ - name : Build Documentation
29+ run : |
30+ cd docs
31+ make html
32+
33+ - name : Deploy to GitHub Pages
34+ uses : peaceiris/actions-gh-pages@v3
35+ with :
36+ github_token : ${{ secrets.GITHUB_TOKEN }}
37+ publish_dir : ./docs/_build/html
You can’t perform that action at this time.
0 commit comments