From 32fd6965573207b8f33cce6be05cb2c013ccd6d6 Mon Sep 17 00:00:00 2001 From: Alex Stewart Date: Wed, 3 Dec 2025 10:58:00 -0500 Subject: [PATCH] workflows: insert CNAME designation when publishing The canonical nilrt-docs.ni.com subdomain tries to redirect to GH pages. And it requires the Github custom domain configuration subsystem to work, which means that the gh-pages ref must have a CNAME file with the correct CNAME in it. But since that branch contents is entirely composed of the built html files, we must insert the CNAME file in the workflow. Signed-off-by: Alex Stewart --- .github/workflows/publish-page.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish-page.yml b/.github/workflows/publish-page.yml index 852a985..60ba3fc 100644 --- a/.github/workflows/publish-page.yml +++ b/.github/workflows/publish-page.yml @@ -18,6 +18,9 @@ jobs: - name: Build project uses: ./.github/actions/build + - name: Set up CNAME for GitHub Pages + run: echo "nilrt-docs.ni.com" >docs/build/html/CNAME + - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v4 with: