Skip to content

Commit dc51261

Browse files
authored
deploy docs on manual trigger (#462)
It turns out that we are building docs but not deploying docs when we merge napari/napari PRs, and also on manually-triggered workflows. Only merges to main on the napari/docs repo get deployed. This PR also adds workflow_dispatch to the conditions in which built docs are deployed. (This is also the mechanism by which merges in napari/napari trigger docs building in the this repo.)
1 parent ffc22d0 commit dc51261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build_and_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
fi
115115
116116
- name: Deploy Docs
117-
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/main'))
117+
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && (startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/main'))
118118
uses: peaceiris/actions-gh-pages@v3
119119
with:
120120
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}

0 commit comments

Comments
 (0)