Skip to content

Commit

Permalink
Fix generation of application and network specs (#348)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tidoust authored Sep 23, 2024
1 parent 659582c commit ace1895
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
python -m pip install --upgrade pip
pip install Pygments
# Note: the step actually generates all CDDL message pages, but the
# w3c/spec-prod action cleans these files after each build, so we'll
# have to generate them again each time.
- name: Generate messages_appendix.html
run: python scripts/pygmentize_dir.py

Expand All @@ -51,6 +54,9 @@ jobs:
W3C_BUILD_OVERRIDE: |
status: WD
- name: Generate application_messages.html
run: python scripts/pygmentize_dir.py

- name: Build and validate application.html, push to gh-pages branch if needed
uses: w3c/spec-prod@v2
with:
Expand All @@ -59,6 +65,9 @@ jobs:
GH_PAGES_BRANCH: gh-pages
W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_APPLICATION }}

- name: Generate network_messages.html
run: python scripts/pygmentize_dir.py

- name: Build and validate network.html, push to gh-pages branch if needed
uses: w3c/spec-prod@v2
with:
Expand Down

0 comments on commit ace1895

Please sign in to comment.