-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A way to exclude some files from being deleted #56
Comments
I need that feature, it keeps deleting my CNAME. Is there any workaround or parameter to do that? |
Do you have your CNAME in the web directory? Cause I have and that one isn't getting deleted, as it's not in this list of items that are deleted: https://github.com/kevmoo/peanut.dart/blob/master/lib/src/build_runner.dart#L90 |
I've putted manually in gh-pages branch, not the master. |
Put it into the web folder of the branch where you do the development. The gh-pages branch is always getting generated in a fresh state (otherwise you wouldn't get rid of older files) and changing that would be an entirely different issue. |
Thank you, it solved my problem. |
Until the improvement is made, I wonder if I can execute a post-deploy script to copy the .md file in the web output before committing. How can I copy the file from my project into the built output? |
I feel like folks using a custom domain for GitHub Pages and having their CNAME deleted on subsequent deploys is a major issue. |
PRs welcome! |
The CNAME is not getting deleted, just the list of these items: https://github.com/kevmoo/peanut.dart/blob/master/lib/src/build_runner.dart#L112-L130 Only the |
I have a CHANGELOG.md in my web-directory which I load via https://pub.dev/packages/markdown if the user wants to see the changelog. Now it just get's deleted.
Or maybe exclude the original items in the web-directory because the stuff in there usually is supposed to be deployed?
The text was updated successfully, but these errors were encountered: