Repository navigation
Closed
Labels
Description
Automate publishing the specification to GitHub pages via Github Actions.
My current proposal is:
- a CI workflow will build each PR and publish to an appropriately named directory in the
gh-pagesbranch, i.e. this PR might be published towip/pulls/143(and then would be browsable at theupdateframework.github.io/specifcation/wip/pulls/143). The workflow would also update the PR with a link to the rendered document. - a cleanup workflow would run periodically and compare the children of
wip/pullsto open PRs, removing any children ofwip/pullsfor which there isn't a corresponding open PR - a release workflow will be triggered on changes to
master, and:- make a release on GitHub with a corresponding versioned tag
- build the spec for that release and publish it to the
latestdirectory of thegh-pagesbranch - also publish the built spec to a versioned subdirectory of the
gh-pagesbranch - update a listing page (index.html?) to point to the versioned subdirectory (the listing will enable browsers to find: the latest spec, specific versioned spec releases, and the most recent draft)
- NOTE: once this is done we need to update theupdateframework.io to point to the generated latest specification (and index of published versions)
- a draft workflow will be triggered on changes to
draft, and:- build the spec in the
draftbranch - publish the spec to a
draftsubdirectory of thegh-pagesbranch
- build the spec in the
- a nag workflow will be triggered on changes to
masterand file an issue requestingdraftis updated
Questions:
- Should we be signing spec releases (and therefore not doing automated releases on push to master)?
- Is the cleanup workflow necessary or, for the sake of a ~200K per PR, should we retain history for the PRs?
Originally posted by @joshuagl in #143 (comment)
- PRs trigger a build and publish to a wip/pulls subdirectory of the
gh-pagesbranch - Updated master branch triggers a release (tag in repo and published release on GitHub)
- Release triggers a build and publishes to both latest and versioned subdirectories of
gh-pagesbranch (and updates index) - theupdateframework.io updated to link to published specification on theupdateframework.github.io/specification
- Updated master branch files an issue to rebase draft branch
- Updated draft branch builds the spec and publishes it to the draft subdirectory of the
gh-pagesbranch
Reacted by Lukas Pühringer
Activity
lukpueh commentedon Jan 27, 2021
IIRC #143 (comment) pp. has some discussion about your questions.