-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Action does not deploy CNAME or .nojekyll files #354
Comments
You need to manually commit them on the I'm going to close this as I don't believe this is a bug as per say, just a side effect of how CLEAN works and an effort to keep the README consistent. You can extend the list of ignored files by CLEAN using the |
Hey, thanks for the response! The README does not mention that these files need to be manually committed, only that I'm not looking for those files to be cleaned. Instead, I want the files to be created if they're present. This is important for template repositories that use this action. With this bug, a user is required to manually create two files and push them to the repository or else the automated deployment will not work. Do you think this behavior should be documented? s there a way to use |
It's mentioned under the Additional Build Files section. The user needs to manually commit them for a few reasons:
In my opinion intervention from the user to commit these files once is a much better option than creating the potential scenario where a website goes down because of a mis-configured or non existent CNAME file in your distribution folder. Checking the existence of these files and conditionally ignoring them if they don't exist would be an improvement, but I'm cautious to make this change due to the impact it could have on everyone currently using this action, it would likely require a major version bump. Can you explain the use case of generating a CNAME file via a template? |
I'm sorry, I can't find what you're referring to in the docs. The "Additional Build Files" section says this for me right now:
This section tells me that I can manually commit I agree that the I want to make it clear that I don't think the My use case for I think the more important file for this case is |
Got it - Let me do some more thinking on the best way to handle this. I think checking the existence of the files first before selectively ignoring them (in the case of clean) would be the best option. There's an issue I ran into with #310 that I'm working on fixing which will likely pave the way for this to become possible. I may have some time this weekend so I'll see if I can get a working draft ready by then. |
Thank you! Let me know if there's anything I can do to help. |
@LPGhatguy I've done some work on this and I think I have a reasonable solution for you. Can you try this again but use this branch of the action: I'll need to make a README adjustment if that explains how you should delete these files should the need arise as you'll need to manually remove them from the deployment branch. Let me know if this works for your case! I'll push it up a release with this Monday if so. |
This fix looks good to me. The commit that GitHub auto-linked just above created this commit: LPGhatguy/parcel-ssg-example@ea542d6 There is no Thank you! |
The same logic applies to both. I'll go ahead and push this up later today! I'll let you know when it's available in the release. |
Released as part of |
Thank you! |
I recently started a new project using this action to deploy to GitHub Actions. My page generator creates
CNAME
and.nojekyll
files, but I noticed that my gh-pages branch didn't end up with either of those files!It appears that, although this action preserves those files if they were already there, it does not add them if they weren't there already. I have since manually added those files by hand. I read in this repository's README that
CNAME
and.nojekyll
are special, which leads me to believe there may be a bug.My use of the workflow is:
Here is a run of the relevant workflow: https://github.com/LPGhatguy/rojo.space-v2/runs/837921047?check_suite_focus=true
This run happened after I manually added
CNAME
(because I noticed it was missing), but before I manually added.nojekyll
. There are no error messages or output to report, just this funny behavior.The text was updated successfully, but these errors were encountered: