Skip to content

Commit f9be8d7

Browse files
committed
Update CI to build and publish code metadata spec
1 parent ad4dcdb commit f9be8d7

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.github/workflows/ci-spec.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,28 @@ jobs:
7070
name: web-api-rendered
7171
path: document/web-api/index.html
7272

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+
7392
publish-spec:
7493
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]
7695
steps:
7796
- name: Checkout repo
7897
uses: actions/checkout@v2
@@ -93,8 +112,13 @@ jobs:
93112
with:
94113
name: web-api-rendered
95114
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
96120
- name: Publish to GitHub Pages
97-
if: github.ref == 'refs/heads/main'
121+
if: github.ref == 'refs/heads/move-spec'
98122
uses: peaceiris/actions-gh-pages@v3
99123
with:
100124
publish_dir: ./_output

0 commit comments

Comments
 (0)