From 224b96cf72013dddd87f1e1bbfc8e967027af769 Mon Sep 17 00:00:00 2001 From: Robert van Gent Date: Wed, 26 Feb 2020 22:26:05 -0800 Subject: [PATCH] deploy: Implement include/exclude filters for deploy Fixes #6922 --- content/en/hosting-and-deployment/hugo-deploy.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/content/en/hosting-and-deployment/hugo-deploy.md b/content/en/hosting-and-deployment/hugo-deploy.md index 81436b7f3..a571d366d 100644 --- a/content/en/hosting-and-deployment/hugo-deploy.md +++ b/content/en/hosting-and-deployment/hugo-deploy.md @@ -82,8 +82,13 @@ name = "mydeployment" # If you are using a CloudFront CDN, deploy will invalidate the cache as needed. cloudFrontDistributionID = - -# ... add more [[deployment.targets]] sections ... +# Optionally, you can include or exclude specific files. +# See https://godoc.org/github.com/gobwas/glob#Glob for the glob pattern syntax. +# If non-empty, the pattern is matched against the local path. +# If exclude is non-empty, and a file's path matches it, that file is dropped. +# If include is non-empty, and a file's path does not match it, that file is dropped. +# include = "**.html" # would only include files with ".html" suffix +# exclude = "**.{jpg, png}" # would exclude files with ".jpg" or ".png" suffix # [[deployment.matchers]] configure behavior for files that match the Pattern.