70
70
name : web-api-rendered
71
71
path : document/web-api/index.html
72
72
73
+ build-code-metadata-spec :
74
+ runs-on : ubuntu-latest
75
+ steps :
76
+ - name : Checkout repo
77
+ uses : actions/checkout@v2
78
+ with :
79
+ submodules : " recursive"
80
+ - name : Setup TexLive
81
+ run : sudo apt-get update -y && sudo apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
82
+ - name : Setup Sphinx
83
+ run : pip install six && pip install sphinx==5.1.0
84
+ - name : Build main spec
85
+ run : cd document/metadata/code && make main
86
+ - name : Upload artifact
87
+ uses : actions/upload-artifact@v2
88
+ with :
89
+ name : code-metadata-rendered
90
+ path : document/metadata/code/_build/html
91
+
73
92
publish-spec :
74
93
runs-on : ubuntu-latest
75
- needs : [build-core-spec, build-js-api-spec, build-web-api-spec]
94
+ needs : [build-core-spec, build-js-api-spec, build-web-api-spec, build-code-metadata-spec ]
76
95
steps :
77
96
- name : Checkout repo
78
97
uses : actions/checkout@v2
@@ -93,8 +112,13 @@ jobs:
93
112
with :
94
113
name : web-api-rendered
95
114
path : _output/web-api
115
+ - name : Download code metadata spec artifact
116
+ uses : actions/download-artifact@v2
117
+ with :
118
+ name : code-metadata-rendered
119
+ path : _output/metadata/code
96
120
- name : Publish to GitHub Pages
97
- if : github.ref == 'refs/heads/main '
121
+ if : github.ref == 'refs/heads/move-spec '
98
122
uses : peaceiris/actions-gh-pages@v3
99
123
with :
100
124
publish_dir : ./_output
0 commit comments