summaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
authorRobert van Gent <rvangent@google.com>2020-02-26 22:26:05 -0800
committerGitHub <noreply@github.com>2020-02-27 07:26:05 +0100
commit05a74eaec0d944a4b29445c878a431cd6ae12277 (patch)
treec2dba9a318afd6b85b5da178ce613167cf6ed80e /docs/content
parent33ae62108325f703f1eaeabef1e8a80950229415 (diff)
deploy: Implement include/exclude filters for deploy
Fixes #6922
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/en/hosting-and-deployment/hugo-deploy.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/content/en/hosting-and-deployment/hugo-deploy.md b/docs/content/en/hosting-and-deployment/hugo-deploy.md
index 81436b7f3..a571d366d 100644
--- a/docs/content/en/hosting-and-deployment/hugo-deploy.md
+++ b/docs/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 = <ID>
-
-# ... 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.