From d72d23f7e87aa589ae8b16ee8678776542ac8676 Mon Sep 17 00:00:00 2001 From: Simon Norris Date: Fri, 23 Feb 2024 14:04:03 -0800 Subject: [PATCH] only build docs on tags when there are changes to doc files --- .github/workflows/build-docs.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index c78e81d..c9bad64 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -5,7 +5,11 @@ name: build-docs # events but only for the main branch on: push: - branches: [ main ] + paths: + - 'docs/**' + create: + tags: + - '*' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: docs: