@@ -35,13 +35,44 @@ jobs:
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
42
42
43
- build-legacy-exceptions -spec :
43
+ build-js-api -spec :
44
44
runs-on : ubuntu-latest
45
+ steps :
46
+ - name : Checkout repo
47
+ uses : actions/checkout@v2
48
+ - name : Setup Bikeshed
49
+ run : pip install bikeshed && bikeshed update
50
+ - name : Run Bikeshed
51
+ run : bikeshed spec "document/js-api/index.bs" "document/js-api/index.html"
52
+ - name : Upload artifact
53
+ uses : actions/upload-artifact@v4
54
+ with :
55
+ name : js-api-rendered
56
+ path : document/js-api/index.html
57
+
58
+ build-web-api-spec :
59
+ runs-on : ubuntu-latest
60
+ steps :
61
+ - name : Checkout repo
62
+ uses : actions/checkout@v2
63
+ - name : Setup Bikeshed
64
+ run : pip install bikeshed && bikeshed update
65
+ - name : Run Bikeshed
66
+ run : bikeshed spec "document/web-api/index.bs" "document/web-api/index.html"
67
+ - name : Upload artifact
68
+ uses : actions/upload-artifact@v4
69
+ with :
70
+ name : web-api-rendered
71
+ path : document/web-api/index.html
72
+
73
+ build-code-metadata-spec :
74
+ runs-on : ubuntu-latest
75
+ needs : [build-core-spec]
45
76
steps :
46
77
- name : Checkout repo
47
78
uses : actions/checkout@v2
@@ -52,71 +83,108 @@ jobs:
52
83
- name : Setup Sphinx
53
84
run : pip install six && pip install sphinx==5.1.0
54
85
- name : Build main spec
55
- run : cd document/legacy/exceptions && make main
86
+ run : cd document/metadata/code && make main
56
87
- name : Upload artifact
57
- uses : actions/upload-artifact@v2
88
+ uses : actions/upload-artifact@v4
58
89
with :
59
- name : legacy-exceptions -rendered
60
- path : document/legacy/exceptions /_build/html
90
+ name : code-metadata -rendered
91
+ path : document/metadata/code /_build/html
61
92
62
- build-js-api -spec :
93
+ build-legacy-exceptions-core -spec :
63
94
runs-on : ubuntu-latest
64
95
steps :
65
96
- name : Checkout repo
66
97
uses : actions/checkout@v2
67
- - name : Setup Bikeshed
68
- run : pip install bikeshed && bikeshed update
69
- - name : Run Bikeshed
70
- run : bikeshed spec "document/js-api/index.bs" "document/js-api/index.html"
98
+ with :
99
+ submodules : " recursive"
100
+ - name : Setup TexLive
101
+ run : sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
102
+ - name : Setup Sphinx
103
+ run : pip install six && pip install sphinx==5.1.0
104
+ - name : Build main spec
105
+ run : cd document/legacy/exceptions/core && make main
71
106
- name : Upload artifact
72
- uses : actions/upload-artifact@v2
107
+ uses : actions/upload-artifact@v4
73
108
with :
74
- name : js-api -rendered
75
- path : document/js-api/index. html
109
+ name : legacy-exceptions-core -rendered
110
+ path : document/legacy/exceptions/core/_build/ html
76
111
77
- build-web -api-spec :
112
+ build-legacy-exceptions-js -api-spec :
78
113
runs-on : ubuntu-latest
79
114
steps :
80
115
- name : Checkout repo
81
116
uses : actions/checkout@v2
82
117
- name : Setup Bikeshed
83
118
run : pip install bikeshed && bikeshed update
84
119
- name : Run Bikeshed
85
- run : bikeshed spec "document/web -api/index.bs" "document/web -api/index.html"
120
+ run : bikeshed spec "document/legacy/exceptions/js -api/index.bs" "document/legacy/exceptions/js -api/index.html"
86
121
- name : Upload artifact
87
- uses : actions/upload-artifact@v2
122
+ uses : actions/upload-artifact@v4
88
123
with :
89
- name : web-api-rendered
90
- path : document/web-api/index.html
124
+ name : legacy-exceptions-js-api-rendered
125
+ path : document/legacy/exceptions/js-api/index.html
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/
91
137
92
138
publish-spec :
93
139
runs-on : ubuntu-latest
94
- needs : [build-core-spec, build-legacy-exceptions-spec, build-js-api-spec, build-web-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
95
148
steps :
96
149
- name : Checkout repo
97
150
uses : actions/checkout@v2
98
151
- name : Create output directory
99
152
run : mkdir _output && cp document/index.html _output/index.html
100
153
- name : Download core spec artifact
101
- uses : actions/download-artifact@v2
154
+ uses : actions/download-artifact@v4
102
155
with :
103
156
name : core-rendered
104
157
path : _output/core
105
- - name : Download legacy exceptions spec artifact
106
- uses : actions/download-artifact@v2
107
- with :
108
- name : legacy-exceptions-rendered
109
- path : _output/legacy/exceptions
110
158
- name : Download JS API spec artifact
111
- uses : actions/download-artifact@v2
159
+ uses : actions/download-artifact@v4
112
160
with :
113
161
name : js-api-rendered
114
162
path : _output/js-api
115
163
- name : Download Web API spec artifact
116
- uses : actions/download-artifact@v2
164
+ uses : actions/download-artifact@v4
117
165
with :
118
166
name : web-api-rendered
119
167
path : _output/web-api
168
+ - name : Download code metadata spec artifact
169
+ uses : actions/download-artifact@v4
170
+ with :
171
+ name : code-metadata-rendered
172
+ path : _output/metadata/code
173
+ - name : Download legacy exceptions core spec artifact
174
+ uses : actions/download-artifact@v4
175
+ with :
176
+ name : legacy-exceptions-core-rendered
177
+ path : _output/legacy/exceptions/core
178
+ - name : Download legacy exceptions JS API spec artifact
179
+ uses : actions/download-artifact@v4
180
+ with :
181
+ name : legacy-exceptions-js-api-rendered
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
120
188
- name : Publish to GitHub Pages
121
189
if : github.ref == 'refs/heads/main'
122
190
uses : peaceiris/actions-gh-pages@v3
0 commit comments