File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,12 +3,8 @@ name: Build & Deploy EPANET2.2 Sphinx Docs
33on :
44 push :
55 branches :
6- - master
7- workflow_dispatch : # allows manual runs from the Actions tab
8-
9- concurrency :
10- group : " pages"
11- cancel-in-progress : true
6+ - master # or "main"
7+ workflow_dispatch : # optional manual trigger
128
139jobs :
1410 build :
@@ -25,28 +21,26 @@ jobs:
2521 python-version : ' 3.x'
2622
2723 - name : Install Sphinx dependencies
28- run : |
29- pip install -r ${{ env.DOCS_DIR }}/requirements.txt
24+ run : pip install -r ${{ env.DOCS_DIR }}/requirements.txt
3025
3126 - name : Build HTML
32- run : |
33- sphinx-build -b html ${{ env.DOCS_DIR }} ${{ env.DOCS_DIR }}/_build/html
27+ run : sphinx-build -b html ${{ env.DOCS_DIR }} ${{ env.DOCS_DIR }}/_build/html
3428
3529 - name : Upload Pages artifact
3630 uses : actions/upload-pages-artifact@v3
3731 with :
38- path : ${{ env.DOCS_DIR }}/_build/html
32+ path : ${{ env.DOCS_DIR }}/_build/html # build output to deploy :contentReference[oaicite:0]{index=0}
3933
4034 deploy :
4135 needs : build
4236 runs-on : ubuntu-latest
4337 permissions :
44- pages : write # to push to the github-pages environment
45- id-token : write # required for OIDC deployment
38+ pages : write # required to deploy to Pages
39+ id-token : write # required for OIDC verification
4640 environment :
4741 name : github-pages
4842 url : ${{ steps.deployment.outputs.page_url }}
4943 steps :
5044 - name : Deploy to GitHub Pages
5145 id : deployment
52- uses : actions/deploy-pages@v4
46+ uses : actions/deploy-pages@v4 # official Pages deploy action :contentReference[oaicite:1]{index=1}
You can’t perform that action at this time.
0 commit comments