Skip to content

Commit

Permalink
ci: Allow manual trigger for docs deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Oct 20, 2023
1 parent 27a4fe2 commit 4a9e2c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docs-global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
push:
tags:
- py-**
# Allow manual trigger until we have properly versioned docs
workflow_dispatch:

jobs:
markdown-link-check:
Expand Down Expand Up @@ -72,12 +74,12 @@ jobs:
run: mkdocs build

- name: Add .nojekyll
if: ${{ github.ref_type == 'tag' }}
if: github.ref_type == 'tag' || github.event_name == 'workflow_dispatch'
working-directory: site
run: touch .nojekyll

- name: Deploy docs
if: ${{ github.ref_type == 'tag' }}
if: github.ref_type == 'tag' || github.event_name == 'workflow_dispatch'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: site
Expand Down

0 comments on commit 4a9e2c0

Please sign in to comment.