diff --git a/.gitattributes b/.gitattributes index 4d637fc9..03537eb5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,29 @@ +# +# Exclude these files from release archives. +# This will also make them unavailable when using Composer with `--prefer-dist`. +# https://blog.madewithlove.be/post/gitattributes/ +# /tests export-ignore -/bin export-ignore -/.gitignore export-ignore -/.travis.yml export-ignore -/phpunit.xml.dist export-ignore +/psalm export-ignore +/.github export-ignore +.gitattributes export-ignore +.gitignore export-ignore +.phpcsignore export-ignore +.travis.yml export-ignore +codecov.yml export-ignore +phpunit.xml.dist export-ignore +psalm.xml export-ignore +verify.txt export-ignore + +# +# Auto detect text files and perform LF normalization +# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/ +# +* text=auto + +# +# The above will handle all files NOT found below +# +*.md text +*.php text +*.inc text diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index aa062d72..6a8eb68f 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -26,7 +26,7 @@ jobs: uses: thedoctor0/zip-release@master with: filename: 'manual-install.zip' - exclusions: '*.git* *tests/ *tests/data/ *tests/* *tests/**/*' + exclusions: '*.git* *tests/ *tests/data/ *tests/* *tests/**/* *psalm/* *.phpcsignore *.yml *.xml *.xml.dist' path: '.' directory: '.'