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
+ 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@v2
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@v2
69
+ with :
70
+ name : web-api-rendered
71
+ path : document/web-api/index.html
72
+
73
+ build-code-metadata-spec :
44
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,46 +83,50 @@ 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
88
uses : actions/upload-artifact@v2
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
107
uses : actions/upload-artifact@v2
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
122
uses : actions/upload-artifact@v2
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
91
126
92
127
publish-spec :
93
128
runs-on : ubuntu-latest
94
- needs : [build-core-spec, build-legacy-exceptions -spec, build-js -api-spec, build-web -api-spec]
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]
95
130
steps :
96
131
- name : Checkout repo
97
132
uses : actions/checkout@v2
@@ -102,11 +137,6 @@ jobs:
102
137
with :
103
138
name : core-rendered
104
139
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
140
- name : Download JS API spec artifact
111
141
uses : actions/download-artifact@v2
112
142
with :
@@ -117,6 +147,21 @@ jobs:
117
147
with :
118
148
name : web-api-rendered
119
149
path : _output/web-api
150
+ - name : Download code metadata spec artifact
151
+ uses : actions/download-artifact@v2
152
+ with :
153
+ name : code-metadata-rendered
154
+ path : _output/metadata/code
155
+ - name : Download legacy exceptions core spec artifact
156
+ uses : actions/download-artifact@v2
157
+ with :
158
+ name : legacy-exceptions-core-rendered
159
+ path : _output/legacy/exceptions/core
160
+ - name : Download legacy exceptions JS API spec artifact
161
+ uses : actions/download-artifact@v2
162
+ with :
163
+ name : legacy-exceptions-js-api-rendered
164
+ path : _output/legacy/exceptions/js-api
120
165
- name : Publish to GitHub Pages
121
166
if : github.ref == 'refs/heads/main'
122
167
uses : peaceiris/actions-gh-pages@v3
0 commit comments