From d94fb0d4341a363b4bb8fe01ff77aa79f4a13394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=BDoljom?= Date: Wed, 23 Jun 2021 15:12:16 +0200 Subject: [PATCH 1/2] Update .gitattributes Exclude unnecessary files and folders from the release --- .gitattributes | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) 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 From fd1ec9d3b7894a6b2273eb74f4e7b47ded3a5943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=BDoljom?= Date: Wed, 23 Jun 2021 15:12:31 +0200 Subject: [PATCH 2/2] Update workflow for bundling releases Exclude unnecessary files and folders from the release --- .github/workflows/build-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: '.'