Skip to content

Commit 1a76684

Browse files
committed
Update workflow to run docs without release
1 parent 3befb87 commit 1a76684

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/python-app.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ on:
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

1421
jobs:
1522
lint:
@@ -58,7 +65,8 @@ jobs:
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
@@ -68,8 +76,10 @@ jobs:
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

0 commit comments

Comments
 (0)