@@ -2,11 +2,11 @@ name: CI for specs
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [ main, wasm-3.0 ]
66 paths : [ .github/**, document/** ]
77
88 pull_request :
9- branches : [ main ]
9+ branches : [ main, wasm-3.0 ]
1010 paths : [ .github/**, document/** ]
1111
1212 # Allows you to run this workflow manually from the Actions tab
@@ -17,11 +17,11 @@ jobs:
1717 runs-on : ubuntu-latest
1818 steps :
1919 - name : Checkout repo
20- uses : actions/checkout@v2
20+ uses : actions/checkout@v4
2121 with :
2222 submodules : " recursive"
2323 - name : Setup Node.js
24- uses : actions/setup-node@v3
24+ uses : actions/setup-node@v4
2525 with :
2626 node-version : 16
2727 - name : Setup Bikeshed
3535 - name : Run Bikeshed
3636 run : cd document/core && make bikeshed
3737 - name : Upload artifact
38- uses : actions/upload-artifact@v2
38+ uses : actions/upload-artifact@v4
3939 with :
4040 name : core-rendered
4141 path : document/core/_build/html
@@ -44,13 +44,13 @@ jobs:
4444 runs-on : ubuntu-latest
4545 steps :
4646 - name : Checkout repo
47- uses : actions/checkout@v2
47+ uses : actions/checkout@v4
4848 - name : Setup Bikeshed
4949 run : pip install bikeshed && bikeshed update
5050 - name : Run Bikeshed
5151 run : bikeshed spec "document/js-api/index.bs" "document/js-api/index.html"
5252 - name : Upload artifact
53- uses : actions/upload-artifact@v2
53+ uses : actions/upload-artifact@v4
5454 with :
5555 name : js-api-rendered
5656 path : document/js-api/index.html
@@ -59,13 +59,13 @@ jobs:
5959 runs-on : ubuntu-latest
6060 steps :
6161 - name : Checkout repo
62- uses : actions/checkout@v2
62+ uses : actions/checkout@v4
6363 - name : Setup Bikeshed
6464 run : pip install bikeshed && bikeshed update
6565 - name : Run Bikeshed
6666 run : bikeshed spec "document/web-api/index.bs" "document/web-api/index.html"
6767 - name : Upload artifact
68- uses : actions/upload-artifact@v2
68+ uses : actions/upload-artifact@v4
6969 with :
7070 name : web-api-rendered
7171 path : document/web-api/index.html
7575 needs : [build-core-spec]
7676 steps :
7777 - name : Checkout repo
78- uses : actions/checkout@v2
78+ uses : actions/checkout@v4
7979 with :
8080 submodules : " recursive"
8181 - name : Setup TexLive
8585 - name : Build main spec
8686 run : cd document/metadata/code && make main
8787 - name : Upload artifact
88- uses : actions/upload-artifact@v2
88+ uses : actions/upload-artifact@v4
8989 with :
9090 name : code-metadata-rendered
9191 path : document/metadata/code/_build/html
9494 runs-on : ubuntu-latest
9595 steps :
9696 - name : Checkout repo
97- uses : actions/checkout@v2
97+ uses : actions/checkout@v4
9898 with :
9999 submodules : " recursive"
100100 - name : Setup TexLive
@@ -104,7 +104,7 @@ jobs:
104104 - name : Build main spec
105105 run : cd document/legacy/exceptions/core && make main
106106 - name : Upload artifact
107- uses : actions/upload-artifact@v2
107+ uses : actions/upload-artifact@v4
108108 with :
109109 name : legacy-exceptions-core-rendered
110110 path : document/legacy/exceptions/core/_build/html
@@ -119,52 +119,75 @@ jobs:
119119 - name : Run Bikeshed
120120 run : bikeshed spec "document/legacy/exceptions/js-api/index.bs" "document/legacy/exceptions/js-api/index.html"
121121 - name : Upload artifact
122- uses : actions/upload-artifact@v2
122+ uses : actions/upload-artifact@v4
123123 with :
124124 name : legacy-exceptions-js-api-rendered
125125 path : document/legacy/exceptions/js-api/index.html
126126
127+ build-spec-versions :
128+ runs-on : ubuntu-latest
129+ steps :
130+ - name : Checkout repo
131+ uses : actions/checkout@v4
132+ - name : Upload artifacts
133+ uses : actions/upload-artifact@v4
134+ with :
135+ name : versions-rendered
136+ path : document/versions/
137+
127138 publish-spec :
128139 runs-on : ubuntu-latest
129- needs : [build-core-spec, build-js-api-spec, build-web-api-spec, build-code-metadata-spec, build-legacy-exceptions-core-spec, build-legacy-exceptions-js-api-spec]
140+ needs :
141+ - build-core-spec
142+ - build-js-api-spec
143+ - build-web-api-spec
144+ - build-code-metadata-spec
145+ - build-legacy-exceptions-core-spec
146+ - build-legacy-exceptions-js-api-spec
147+ - build-spec-versions
130148 steps :
131149 - name : Checkout repo
132- uses : actions/checkout@v2
150+ uses : actions/checkout@v4
133151 - name : Create output directory
134152 run : mkdir _output && cp document/index.html _output/index.html
135153 - name : Download core spec artifact
136- uses : actions/download-artifact@v2
154+ uses : actions/download-artifact@v4
137155 with :
138156 name : core-rendered
139157 path : _output/core
140158 - name : Download JS API spec artifact
141- uses : actions/download-artifact@v2
159+ uses : actions/download-artifact@v4
142160 with :
143161 name : js-api-rendered
144162 path : _output/js-api
145163 - name : Download Web API spec artifact
146- uses : actions/download-artifact@v2
164+ uses : actions/download-artifact@v4
147165 with :
148166 name : web-api-rendered
149167 path : _output/web-api
150168 - name : Download code metadata spec artifact
151- uses : actions/download-artifact@v2
169+ uses : actions/download-artifact@v4
152170 with :
153171 name : code-metadata-rendered
154172 path : _output/metadata/code
155173 - name : Download legacy exceptions core spec artifact
156- uses : actions/download-artifact@v2
174+ uses : actions/download-artifact@v4
157175 with :
158176 name : legacy-exceptions-core-rendered
159177 path : _output/legacy/exceptions/core
160178 - name : Download legacy exceptions JS API spec artifact
161- uses : actions/download-artifact@v2
179+ uses : actions/download-artifact@v4
162180 with :
163181 name : legacy-exceptions-js-api-rendered
164182 path : _output/legacy/exceptions/js-api
183+ - name : Download spec versions artifacts
184+ uses : actions/download-artifact@v4
185+ with :
186+ name : versions-rendered
187+ path : _output/versions
165188 - name : Publish to GitHub Pages
166189 if : github.ref == 'refs/heads/main'
167- uses : peaceiris/actions-gh-pages@v3
190+ uses : peaceiris/actions-gh-pages@v4
168191 with :
169192 publish_dir : ./_output
170193 github_token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments