-
Notifications
You must be signed in to change notification settings - Fork 47
43 lines (42 loc) · 1.32 KB
/
auto-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Auto-publish
on:
pull_request: {}
push:
paths:
- index.bs
branches: [main]
jobs:
main:
name: Build, Validate and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: w3c/spec-prod@v2
with:
GH_PAGES_BRANCH: gh-pages
TOOLCHAIN: bikeshed
VALIDATE_LINKS: false
BUILD_FAIL_ON: warning
W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-webmachinelearning-wg/2021Jun/0011.html
W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN }}
W3C_BUILD_OVERRIDE: |
TR: https://www.w3.org/TR/webnn/
status: CRD
- name: WebNN - Lint Bikeshed Source and Generated HTML
id: webnn-lint
shell: bash
env:
BIKESHED_SOURCE: "index.bs"
GENERATED_HTML: "index.bs.built.html"
run: |
echo "::group::Install Lint Tool Dependencies"
cd tools
npm install
cd ..
echo "::endgroup::"
echo "::group::Generate Static HTML"
bikeshed --die-on=warning spec $BIKESHED_SOURCE $GENERATED_HTML
echo "::endgroup::"
echo "::group::Run Lint Tool"
node tools/lint.mjs --verbose --bikeshed $BIKESHED_SOURCE --html $GENERATED_HTML
echo "::endgroup::"