Skip to content

Commit ace1895

Browse files
authored
Fix generation of application and network specs (#348)
The w3c/spec-prod action cleans files at the end of a build, and drops the CDDL messages appendices files that need to be imported to build the application and network specs. Workaround here is to re-generate the messages files each time.
1 parent 659582c commit ace1895

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/auto-publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
python -m pip install --upgrade pip
3737
pip install Pygments
3838
39+
# Note: the step actually generates all CDDL message pages, but the
40+
# w3c/spec-prod action cleans these files after each build, so we'll
41+
# have to generate them again each time.
3942
- name: Generate messages_appendix.html
4043
run: python scripts/pygmentize_dir.py
4144

@@ -51,6 +54,9 @@ jobs:
5154
W3C_BUILD_OVERRIDE: |
5255
status: WD
5356
57+
- name: Generate application_messages.html
58+
run: python scripts/pygmentize_dir.py
59+
5460
- name: Build and validate application.html, push to gh-pages branch if needed
5561
uses: w3c/spec-prod@v2
5662
with:
@@ -59,6 +65,9 @@ jobs:
5965
GH_PAGES_BRANCH: gh-pages
6066
W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_APPLICATION }}
6167

68+
- name: Generate network_messages.html
69+
run: python scripts/pygmentize_dir.py
70+
6271
- name: Build and validate network.html, push to gh-pages branch if needed
6372
uses: w3c/spec-prod@v2
6473
with:

0 commit comments

Comments
 (0)