Skip to content
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

Enhancement - Ignore .github Folder #3759

Open
CollinHerber opened this issue Jun 26, 2024 · 1 comment
Open

Enhancement - Ignore .github Folder #3759

CollinHerber opened this issue Jun 26, 2024 · 1 comment

Comments

@CollinHerber
Copy link

Something I'd like to setup is Github Actions to run when docs are deployed.
The gh-deploy will delete the .github folder including the workflows so it makes adding CI/CD on top of this impossible.

For example I am not using GH pages for my docs, but rather an external tool to host it so I'd like my files to be deployed and then CI after that deploys the folder.

I tried utilizing something like mkdocs build and just using that but it doens't appear to contain everything it needs (the top level index.html is missing for some reason with that?)

@pawamoy
Copy link
Sponsor Contributor

pawamoy commented Jun 26, 2024

Hi @CollinHerber, thanks for the enhancement suggestion. I think the way forward for you is to indeed stop using the gh-deploy command and instead run Git commands manually (or with a custom script).

The gh-deploy command is really just a shortcut to build the site, commit it to the gh-pahes branch (at the root of the repo), and push it. I suggest you do something similar manually, which will allow you to keep any extra files suc as your GHA workflow, or maybe even change the file layout to build your site in a subfolder instead of the root of the repository.

I don't think adding a special case to it, to somehow prevent deleting .github is a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants