-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable auto-publication of the spec to /TR (#146)
* Enable auto-publication of the spec to /TR This update enables auto-publication of the spec as Candidate Recommendation Draft to /TR, as agreed by the working group. It leverages the [spec-prod action](https://github.com/w3c/spec-prod/) to do that. This update also adjusts the workflow for the Editor's Draft itself. The source spec is now to be found in the `main` branch, and instead of publishing the source spec to GitHub Pages directly, the spec-prod action will rather deploy the generated spec. Among other things, this makes it possible to integrate the spec in Bikeshed's database for cross-referencing purpose (fixing #137). The spec-prod action also takes care of running ReSpec on pull requests to validate changes from an editorial perspective. Note the `ECHIDNA_TOKEN` was added as secret to the repository. * Add crEnd date to please ReSpec ReSpec requires a `crEnd` date when the spec's status is CR or CRD. It makes sense for CR (the date appears in the Status of this Document section). It does not really make sense for CRD (the date does not appear anywhere). Anyway, adding the parameter to please the ReSpec and make the auto-publication process succeed. * Fix HTML markup A `<dl>` cannot be used without `<dt>`. Switching to `<ul>` instead to contain the list of conditions. Needed to enable auto-publication since the spec-prod action validates the HTML.
- Loading branch information
Showing
3 changed files
with
29 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Build, Validate, Deploy and Publish | ||
on: | ||
pull_request: {} | ||
push: | ||
branches: [main] | ||
jobs: | ||
main: | ||
name: Build and validate spec, then deploy and publish (only if push to main branch) | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: w3c/spec-prod@v2 | ||
with: | ||
GH_PAGES_BRANCH: gh-pages | ||
W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN }} | ||
W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-secondscreen/2022Apr/0007.html | ||
W3C_BUILD_OVERRIDE: | | ||
specStatus: CRD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters