Skip to content

Commit

Permalink
ci: fix docs build
Browse files Browse the repository at this point in the history
Follow-up to #4062, which broke the deploy-docs workflow. By introducing
mdbook-linkcheck, we inadvertently changed the output dir structure
emitted by `mdbook build`: rather than `docs/guide/book/<docroot>`,
we now have `docs/guide/book/html/<docroot/` and
`docs/guide/book/linkcheck/`. The same is true of the protocol docs.
  • Loading branch information
conorsch committed Mar 21, 2024
1 parent 80a2c72 commit ea5dafd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ jobs:

- name: Build software guide
run: cd docs/guide && mdbook build

- name: Move software guide to subdirectory
run: |
cd docs/guide
if [ -d "firebase-tmp" ]; then rm -rf firebase-tmp; fi
rm -rf firebase-tmp
mkdir firebase-tmp
mv book firebase-tmp/${{ steps.get_version.outputs.version }}
mv book/html firebase-tmp/${{ steps.get_version.outputs.version }}
tree firebase-tmp
- name: Deploy software guide to firebase
Expand All @@ -57,9 +58,9 @@ jobs:
- name: Move protocol spec to subdirectory
run: |
cd docs/protocol
if [ -d "firebase-tmp" ]; then rm -rf firebase-tmp; fi
rm -rf firebase-tmp
mkdir firebase-tmp
mv book firebase-tmp/${{ steps.get_version.outputs.version }}
mv book/html firebase-tmp/${{ steps.get_version.outputs.version }}
tree firebase-tmp
- name: Deploy protocol spec to firebase
Expand Down

0 comments on commit ea5dafd

Please sign in to comment.