Add github workflow to publish to gh-pages branch

This should auto process the bikeshed on push to main and publish
to the gh-pages branch.

Also updating the WebIDL to pass validation.
This commit is contained in:
Rupert Ben Wiser 2023-06-20 13:57:19 +00:00
parent 5d400f8d1e
commit f8448c38fd
4 changed files with 22 additions and 3177 deletions

19
.github/workflows/auto-publish.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: CI
on:
pull_request: {}
push:
branches: [main]
jobs:
main:
name: Build, Validate and Deploy
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: w3c/spec-prod@v2
with:
TOOLCHAIN: bikeshed
GH_PAGES_BRANCH: gh-pages
SOURCE: docs/spec.bs
DESTINATION: index.html

View File

@ -9,4 +9,4 @@ const attestation = await navigator.getEnvironmentIntegrity("...");
The [explainer](./explainer.md) goes gives a high level overview of the proposal.
The [spec](./docs/spec) currently describes how this is being prototyped in Chromium.
The [spec](./docs/spec.bs) currently describes how this is being prototyped in Chromium.

View File

@ -71,6 +71,7 @@ stores state in the [=Integrity verdict=] that can be used for cross site tracki
## {{AttesterConnection}} ## {#attester-connection}
<xmp class="idl">
[Exposed=Window]
interface AttesterConnection {
ArrayBuffer getAttestation(DOMString contentBinding);
};
@ -111,6 +112,7 @@ stores state in the [=Integrity verdict=] that can be used for cross site tracki
## {{EnvironmentIntegrity}} ## {#environment-integrity}
<xmp class="idl">
[Exposed=Window]
interface EnvironmentIntegrity {
readonly attribute ArrayBuffer attestationToken;
DOMString encode();

File diff suppressed because it is too large Load Diff