Skip to content

Commit

Permalink
only update docs site on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Nov 4, 2024
1 parent 41b3d8f commit b76e797
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
- "*"
# run by clicking buttons in the GitHub Actions UI
workflow_dispatch:
inputs:
deploy-docs:
description: 'Update the docs site?'
required: true
type: boolean

jobs:
conda-python-build:
Expand All @@ -30,8 +35,10 @@ jobs:
docs-build:
needs:
- conda-python-build
if: github.event_name == "tag" || github.event_name == "workflow_dispatch"
uses: ./.github/workflows/docs-build.yaml
with:
script: "ci/build_docs.sh"
deploy: true
# only deploy docs on tag pushes or when someone manually runs the workflow
deploy: ${{ github.event_name == "tag" }} || ${{ inputs.deploy_docs == true }}
secrets: inherit

0 comments on commit b76e797

Please sign in to comment.