File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 types : [opened, synchronize, reopened]
1111 release :
1212 types : [created] # Trigger when a release is created
13+ workflow_dispatch : # Allow manual triggering of the workflow
14+ inputs :
15+ deploy_docs :
16+ description : ' Deploy documentation'
17+ required : true
18+ default : true
19+ type : boolean
1320
1421jobs :
1522 lint :
5865
5966 deploy-docs :
6067 runs-on : ubuntu-latest
61- if : github.event_name == 'release' && github.event.action == 'created' # Only on release creation
68+ # Run on release creation OR manual dispatch with deploy_docs=true
69+ if : github.event_name == 'release' && github.event.action == 'created' || github.event_name == 'workflow_dispatch' && inputs.deploy_docs
6270 steps :
6371 - uses : actions/checkout@v4
6472 - name : Configure Git Credentials
6876 - uses : actions/setup-python@v5
6977 with :
7078 python-version : 3.11
71- - name : Install dependencies
79+
80+ - name : Install documentation dependencies
7281 run : |
82+ python -m pip install --upgrade pip
7383 pip install -e .[docs]
7484 - name : Deploy documentation
7585 run : mkdocs gh-deploy --force
You can’t perform that action at this time.
0 commit comments