Skip to content
Snippets Groups Projects
Commit b7f74d78 authored by Erick Hitter's avatar Erick Hitter
Browse files

Merge branch 'add/gitattributes' into 'master'

Explain gitattributes

See merge request !4
parents 6178cfb7 03109c1d
No related branches found
No related tags found
1 merge request!4Explain gitattributes
Pipeline #777 passed with stage
in 1 minute and 22 seconds
......@@ -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
```
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment