w3c / spec-prod

GitHub Action to build ReSpec/Bikeshed specs, validate output and publish to GitHub pages or W3C
https://w3c.github.io/spec-prod/
MIT License
34 stars 21 forks source link

Build respec snapshots #94

Closed jyasskin closed 3 years ago

jyasskin commented 3 years ago

https://github.com/w3ctag/privacy-principles/blob/main/.github/workflows/auto-publish.yml uses spec-prod's respec mode, but the output at https://w3ctag.github.io/privacy-principles/ is identical to the source, rather than being the built snapshot you get by using respec's export tool. The current state makes the published version break when dependencies change, and it shows readers a flash-of-unbuilt-content every time they load a page.

sidvishnoi commented 3 years ago

The issue here is the repository is configured to deploy GitHub pages from "main" branch, and not "gh-pages". gh-pages branch correctly has the static snapshot. See https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site

Find current publishing source for a repo ```bash gh api repos/w3ctag/privacy-principles/pages --jq '.source.branch' #> main ```
jyasskin commented 3 years ago

Thanks, and sorry for the noise.

sidvishnoi commented 3 years ago

No worries 🙂