From 03109c1d5f309b39a7b645eb2f7480ba1e2774dd Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 13 Apr 2019 19:21:38 -0700
Subject: [PATCH] Note `.gitattributes`

---
 README.md              | 11 +++++++++++
 examples/gitattributes | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 examples/gitattributes

diff --git a/README.md b/README.md
index 9d271fa..c8370e4 100644
--- a/README.md
+++ b/README.md
@@ -46,3 +46,14 @@ Set the following environment variables in the GitLab project's configuration:
 ### Alternatives
 
 A [loader script](./scripts/loader.sh) is available as an alternative to downloading the deploy script during the `before_script` stage.
+
+## Ignoring items
+
+The build script uses a `.gitattributes`-based ignore for reasons discussed at [https://github.com/10up/actions-wordpress/pull/7](https://github.com/10up/actions-wordpress/pull/7).
+
+A sample is provided in [examples/gitattributes](./examples/gitattributes). If used, it needs to be copied to `.gitattributes` in the git-repo root and committed before it will be respected.
+
+```
+# A set of files you probably don't want in your WordPress.org distribution
+/.gitattributes export-ignore
+```
diff --git a/examples/gitattributes b/examples/gitattributes
new file mode 100644
index 0000000..d632abe
--- /dev/null
+++ b/examples/gitattributes
@@ -0,0 +1,35 @@
+# A set of files you probably don't want in your WordPress.org distribution
+/.distignore export-ignore
+/.editorconfig export-ignore
+/.gitattributes export-ignore
+/.gitignore export-ignore
+/.gitlab-ci.yml export-ignore
+/.travis.yml export-ignore
+/.DS_Store export-ignore
+/Thumbs.db export-ignore
+/behat.yml export-ignore
+/bitbucket-pipelines.yml export-ignore
+/bin export-ignore
+/.circleci/config.yml export-ignore
+/composer.json export-ignore
+/composer.lock export-ignore
+/Gruntfile.js export-ignore
+/package.json export-ignore
+/package-lock.json export-ignore
+/phpunit.xml export-ignore
+/phpunit.xml.dist export-ignore
+/multisite.xml export-ignore
+/multisite.xml.dist export-ignore
+/.phpcs.xml export-ignore
+/phpcs.xml export-ignore
+/.phpcs.xml.dist export-ignore
+/phpcs.xml.dist export-ignore
+/README.md export-ignore
+/wp-cli.local.yml export-ignore
+/yarn.lock export-ignore
+/tests export-ignore
+/vendor export-ignore
+/node_modules export-ignore
+/*.sql export-ignore
+/*.tar.gz export-ignore
+/*.zip export-ignore
-- 
GitLab