GitHub Pages can publish the static page for your course, while Embedin delivers the course experience. Download your course page from Embedin, publish it from a GitHub repository, then check that it works on its live URL.
GitHub Pages hosting may be free for eligible repositories and plans; course delivery and features are subject to your Embedin plan. GitHub Pages serves static files, so it does not run server-side code or replace a course platform.
Check GitHub Pages' usage rules before publishing a commercial course site. GitHub says Pages is not intended for free hosting of an online business, an e-commerce site, or a site primarily facilitating commercial transactions or providing SaaS. Do not use a Pages site for sensitive transactions such as collecting passwords or payment-card details. An embedded course does not bypass these restrictions. Read GitHub's current Pages limits and usage rules and Terms of Service; if your site is a storefront or commercial learning service, choose hosting whose terms allow that use.
Before you start
- A GitHub account and a repository for your website. GitHub Pages availability and visibility can depend on your GitHub plan and repository settings.
- A published course in Embedin.
- A little page content describing the course. Search engines may not treat text inside an embedded course as a substitute for useful content on the page itself.
Publish your course on GitHub Pages
1. Download your course page
Open your course settings in Embedin and select Download as index.html. Save the downloaded file as index.html in a folder for your website. The file is ready to publish; you do not need to write or paste an embed snippet.
2. Add the page to a GitHub repository
Create a repository or use an existing one, then add index.html at the location you plan to publish from. You can upload the file in GitHub or commit and push it with Git.
3. Enable GitHub Pages
In the repository, open Settings → Pages. Under Build and deployment, choose the branch that contains your page and the folder where index.html lives, then save. If you use a GitHub Actions workflow instead, configure it to publish the site's static files. Wait for the deployment to finish and open the URL shown in Pages settings.
4. Allow the published domain in Embedin
If the page loads but the course does not, add the published site's domain to the course's Allowed domains in Embedin settings and save. If you also use a custom domain or preview URL, allow that domain too. Reload the published page and test the course as a learner.
5. Connect a custom domain (optional)
GitHub Pages can use a custom domain you own. Configure it in the repository's Pages settings and follow GitHub's DNS instructions. Once it resolves to your site, add that domain to the course's Allowed domains in Embedin as well. DNS changes can take time to become active.
Help learners and search engines understand the page
An embedded course is only one part of a useful course page. Write an original title and description, explain the course outcomes in visible text, and link to the page from relevant parts of your site. Use descriptive headings and links, and make sure the page can be crawled in your repository and GitHub Pages settings. Publishing the page does not guarantee that search engines will index it or that content inside the embed will appear as page text.
Troubleshooting
- The course is missing: Confirm the course ID matches in all three places in the snippet and that the published domain is in the course's Allowed domains.
- The page shows a 404: Check that
index.htmlis in the selected publishing folder, then verify the branch and folder in Settings → Pages. - The custom domain does not load: Review the DNS records against GitHub's current instructions and allow time for DNS changes to propagate.
For another static-hosting walkthrough, see how to publish an Embedin course on Cloudflare Pages. If you already have a website, learn how to embed a course on your own site.
Frequently asked questions
Do I need to know how to code?
No. Download index.html from your course settings in Embedin and upload it to your GitHub repository. To make the page more useful in search results, add an original title, description, and visible introduction about the course; do not rely on the embedded course as the page's only content.
Can I use my own domain instead of a GitHub Pages URL?
Yes. Configure the custom domain in GitHub Pages, follow the DNS setup instructions, and add the domain to the course's Allowed domains in Embedin.








