TheDoctor0/zip-release

Exclusion format

Closed this issue · 5 comments

What exactly is the exclusion format for files and folders?

I want to exclude
.git/
.github/
.gitignore

How should I add them to the exclusion list?

Hello.
It's actually quite simple, you can use regex like this:
exclusions: '*.git*;

It didn't work properly for multiple paths as I described
Can you perhaps show an example for the files I mentioned above?

'*.git* .gitignore'

I used this but it didn't work on gitignore

If you want to just exclude those two directories and .gitignore you can list them one by one:
'*.git* *.github* .gitignore'
It is actually part of definition for one of my private projects and works fine.

You can test this exclusions using from terminal after installing zip package like so:
zip -r . -x '*.git* *.github* .gitignore'

Thank you for your support

Glad to help 👍