github-pages-deploy-action icon indicating copy to clipboard operation
github-pages-deploy-action copied to clipboard

Deploy with .github folder is not possible

Open paulocoutinhox opened this issue 2 years ago • 4 comments

Hi,

I need deploy .github folder from my dist directory, but your script remove it hard coded with --exclude.

Can you put option/options to exclude .github folder optional?

Thanks.

paulocoutinhox avatar Jul 29 '22 20:07 paulocoutinhox

We can make this an option if someone would like to make a pull request for it. By default we exclude a series of files that may cause circular deployments. If this were to be supported I think it should provide the same list as it does today by default, but if you add a new input to your workflow like so it should use that list as opposed to the default provided one.

exclude: 
   - .github
   - file.xml

What do you think? We can warn about potential problems in the README.

JamesIves avatar Aug 04 '22 12:08 JamesIves

Before you add the items in --exclude, it should check if these items is not inside clean-exclude list.

Example here: --exclude ${DefaultExcludedFiles.GITHUB}

https://github.com/JamesIves/github-pages-deploy-action/blob/dev/src/git.ts#L184

paulocoutinhox avatar Aug 04 '22 14:08 paulocoutinhox

Hello, I am looking forward to contribute to this. If you can give me any additional instruction, I am grateful to help. Im quite new to OS, but will try my best.

Lorenzobattistela avatar Oct 15 '22 01:10 Lorenzobattistela

You may find the contribution guide helpful here.

JamesIves avatar Nov 18 '22 13:11 JamesIves