-
Notifications
You must be signed in to change notification settings - Fork 47
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
Enhance GitHub Actions: Publish PR and Push Previews as Artifacts to Release Assets and GitHub Pages #569
Comments
Thanks a lot, Antonio. This is a really valuable enhancement to procedures, which I've found useful already. I've been using it for the "leap seconds" issue. There is a limitation that you can do this only for one branch, whereas you might have several branches for different issues at the same time. However, that's a limitation of GitHub Pages. |
@JonathanGregory Yes, I’ve encountered that limitation myself, especially with issue #513. A reasonable approach might be to create a directory in the Managing this with PRs is also possible, but it could introduce some security concerns that may be difficult to overcome. |
I fully agree with Jonathan -- indeed a very useful enhancement! 👍 |
I have created an experimental and rudimentary approach for publishing artifacts from more than just the "main" branch. You can check it here: With this setup, any push to any branch (except Please let me know your thoughts or suggestions! |
That's perfect, @cofinoa! Thanks. I can try it if you like. How would I do that? |
I suggest proceeding with merging the related PR #568, which introduces key improvements to the GitHub Action workflow for building and publishing the CF conventions documentation. Summary of Improvements
How to Use the Updated Workflow in a Fork
By adopting this updated workflow, the process for maintaining and publishing the CF conventions documentation will be more reliable and easier to manage. Please let me know if you have further questions or suggestions. |
This issue documents a technical enhancement introduced in PR #568 to streamline the documentation build process for forked repositories. This update ensures that the
gh-pages
branch is automatically created if it does not already exist in a fork, enabling consistent publishing of documentation across forks.Once the branch is created, it is populated with the necessary build artifacts, including the CF Conventions and Conformance documents in both PDF and HTML formats. These files are linked from a basic index file template located in
.github/index.html
, providing easy access to the documentation in each fork. This enhancement enables contributors and maintainers of forked repositories to maintain an up-to-date and accessible version of the CF documentation, improving the deployment experience.To complete the setup, forks must activate GitHub Pages and set the publishing source to the
/
directory on thegh-pages
branch.The text was updated successfully, but these errors were encountered: