Optimizing GitHub Pages deployment workflows with GitHub Actions for multi-environment documentation sites #176060
Replies: 1 comment
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Our organization maintains extensive technical documentation across multiple products, and we're leveraging GitHub Pages combined with GitHub Actions for automated deployments. We're looking for best practices and optimization strategies for our documentation infrastructure.
Current setup:
Challenges and questions:
Preview deployments: We want to automatically deploy PR-based previews of documentation changes before merging to main. What's the best approach for this with GitHub Pages? Should we use:
Build optimization: Some of our documentation sites take 10-15 minutes to build (large API reference docs, many pages). How can we:
Custom domain management: We have custom domains configured for organization Pages. When deploying multiple documentation sites under subpaths, what's the recommended DNS and CNAME configuration? How do you handle SSL certificate provisioning for custom domains?
Deployment strategies: Currently using the standard GitHub Pages deployment action. Are there advantages to:
actions/deploy-pagesvs. direct branch deployment?gh-pagesbranch vs. using GitHub Actions artifacts?Version management: We need to maintain documentation for multiple product versions (v1.x, v2.x, v3.x). What's the best structure:
Build status and rollback: How do you:
Performance and CDN: GitHub Pages uses a CDN, but are there additional optimizations worth implementing:
Questions:
Would love to hear from teams running production documentation infrastructure on GitHub Pages!
Beta Was this translation helpful? Give feedback.
All reactions