diff --git a/.github/workflows/mdbook.yml b/.github/workflows/mdbook.yml index f7e2657..06e2dbc 100644 --- a/.github/workflows/mdbook.yml +++ b/.github/workflows/mdbook.yml @@ -1,9 +1,12 @@ name: Deploy mdBook site to Pages on: - # Runs on pushes targeting the default branch + # Runs on pushes targeting the default branch, only when docs or this workflow change push: branches: ["main"] + paths: + - "docs/**" + - ".github/workflows/mdbook.yml" # Allows you to run this workflow manually from the Actions tab workflow_dispatch: