35
35
- name : Run Bikeshed
36
36
run : cd document/core && make bikeshed
37
37
- name : Upload artifact
38
- uses : actions/upload-artifact@v2
38
+ uses : actions/upload-artifact@v4
39
39
with :
40
40
name : core-rendered
41
41
path : document/core/_build/html
50
50
- name : Run Bikeshed
51
51
run : bikeshed spec "document/js-api/index.bs" "document/js-api/index.html"
52
52
- name : Upload artifact
53
- uses : actions/upload-artifact@v2
53
+ uses : actions/upload-artifact@v4
54
54
with :
55
55
name : js-api-rendered
56
56
path : document/js-api/index.html
65
65
- name : Run Bikeshed
66
66
run : bikeshed spec "document/web-api/index.bs" "document/web-api/index.html"
67
67
- name : Upload artifact
68
- uses : actions/upload-artifact@v2
68
+ uses : actions/upload-artifact@v4
69
69
with :
70
70
name : web-api-rendered
71
71
path : document/web-api/index.html
85
85
- name : Build main spec
86
86
run : cd document/metadata/code && make main
87
87
- name : Upload artifact
88
- uses : actions/upload-artifact@v2
88
+ uses : actions/upload-artifact@v4
89
89
with :
90
90
name : code-metadata-rendered
91
91
path : document/metadata/code/_build/html
@@ -104,7 +104,7 @@ jobs:
104
104
- name : Build main spec
105
105
run : cd document/legacy/exceptions/core && make main
106
106
- name : Upload artifact
107
- uses : actions/upload-artifact@v2
107
+ uses : actions/upload-artifact@v4
108
108
with :
109
109
name : legacy-exceptions-core-rendered
110
110
path : document/legacy/exceptions/core/_build/html
@@ -119,49 +119,72 @@ jobs:
119
119
- name : Run Bikeshed
120
120
run : bikeshed spec "document/legacy/exceptions/js-api/index.bs" "document/legacy/exceptions/js-api/index.html"
121
121
- name : Upload artifact
122
- uses : actions/upload-artifact@v2
122
+ uses : actions/upload-artifact@v4
123
123
with :
124
124
name : legacy-exceptions-js-api-rendered
125
125
path : document/legacy/exceptions/js-api/index.html
126
126
127
+ build-spec-versions :
128
+ runs-on : ubuntu-latest
129
+ steps :
130
+ - name : Checkout repo
131
+ uses : actions/checkout@v2
132
+ - name : Upload artifacts
133
+ uses : actions/upload-artifact@v4
134
+ with :
135
+ name : versions-rendered
136
+ path : document/versions/
137
+
127
138
publish-spec :
128
139
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
130
148
steps :
131
149
- name : Checkout repo
132
150
uses : actions/checkout@v2
133
151
- name : Create output directory
134
152
run : mkdir _output && cp document/index.html _output/index.html
135
153
- name : Download core spec artifact
136
- uses : actions/download-artifact@v2
154
+ uses : actions/download-artifact@v4
137
155
with :
138
156
name : core-rendered
139
157
path : _output/core
140
158
- name : Download JS API spec artifact
141
- uses : actions/download-artifact@v2
159
+ uses : actions/download-artifact@v4
142
160
with :
143
161
name : js-api-rendered
144
162
path : _output/js-api
145
163
- name : Download Web API spec artifact
146
- uses : actions/download-artifact@v2
164
+ uses : actions/download-artifact@v4
147
165
with :
148
166
name : web-api-rendered
149
167
path : _output/web-api
150
168
- name : Download code metadata spec artifact
151
- uses : actions/download-artifact@v2
169
+ uses : actions/download-artifact@v4
152
170
with :
153
171
name : code-metadata-rendered
154
172
path : _output/metadata/code
155
173
- name : Download legacy exceptions core spec artifact
156
- uses : actions/download-artifact@v2
174
+ uses : actions/download-artifact@v4
157
175
with :
158
176
name : legacy-exceptions-core-rendered
159
177
path : _output/legacy/exceptions/core
160
178
- name : Download legacy exceptions JS API spec artifact
161
- uses : actions/download-artifact@v2
179
+ uses : actions/download-artifact@v4
162
180
with :
163
181
name : legacy-exceptions-js-api-rendered
164
182
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
165
188
- name : Publish to GitHub Pages
166
189
if : github.ref == 'refs/heads/main'
167
190
uses : peaceiris/actions-gh-pages@v3
0 commit comments