Skip to content

Commit

Permalink
Allow triggering docs deploy manually
Browse files Browse the repository at this point in the history
  • Loading branch information
lkubb committed Oct 18, 2024
1 parent 3dc6d92 commit 13f0831
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/deploy-docs-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,19 @@ on:
type: string
required: false
default: html-docs
workflow_dispatch:

jobs:
docs:
name: Render Docs
if: github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/docs-action.yml

Deploy-Docs-GH-Pages:
name: Publish Docs to GitHub Pages
needs:
- docs
if: github.event_name != 'workflow_dispatch' || success()

environment:
name: github-pages
Expand All @@ -27,7 +36,7 @@ jobs:
- name: Download built docs
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: ${{ inputs.artifact-name }}
name: ${{ github.event_name != 'workflow_dispatch' && inputs.artifact-name || 'html-docs' }}
path: html-docs

- name: Upload GitHub Pages artifact
Expand Down

0 comments on commit 13f0831

Please sign in to comment.