-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Automatically publish documentation #385
Conversation
✅ Deploy Preview for herman-staging ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Now that I see it here, I wonder if we should just have a separate |
Hm, good question. I can see how that would be cleaner, to not have extra repos. 🤔 I'm fine with whatever you prefer here -- this repo does already have one Netlify deployment (https://herman-staging.netlify.app/), but if it's easy to add a different deployment for a |
I think it depends on what we want to do. If it's useful to have git history for the built docs, then a separate repo makes sense. If not, then we can just have a separate branch that we only push to when new releases happen. |
Won't the branch provide a git history too? |
I was thinking that |
I switched to using a new branch instead of a new repo in 9429e99. Everything else is pretty much the same. Keep in mind this |
* main: Fix a few links
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work without modifications to the .gitignore
file, which ignores docs/
?
It works if the other branch is not related to main, so it can have its own set of ignored files. I already pushed a branch like that for this repo |
Ah, I see -- so it just has no .gitignore file at all on that branch 👍 |
* main: Fix node v14 test Switch from circleci/codecov/appveyor to gh-actions.
Looks like I missed the inner |
Oops, I just did: #387 |
Description
Use GH Actions to automatically build and publish documentation on every release.
publish-docs.yml
workflow is calledyarn build
outputs to thedocs/
folderdocs/
folder is pushed to theoddleventy-docs
branch/herman/docs/
path (after we merge Use Netlify redirects to host docs oddleventy#268)I also added the option of running the workflow on demand. This should allow us to rebuild docs without having to create a release.