Skip to content

Commit

Permalink
fix: make ci compatible with local build
Browse files Browse the repository at this point in the history
The CI has trouble finding the mermaid pre-processor. Fixing the call to
the local folder works, but this breaks local builds.

Adding the PWD to the path lets the CI find the binaries its looking
for.
  • Loading branch information
CjS77 committed Dec 20, 2023
1 parent 33cd968 commit 73a0653
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/rfc_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ jobs:
run: |
curl -L https://github.com/badboy/mdbook-mermaid/releases/download/v0.13.0/mdbook-mermaid-v0.13.0-x86_64-unknown-linux-gnu.tar.gz | tar xvz
curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.36/mdbook-v0.4.36-x86_64-unknown-linux-gnu.tar.gz | tar xvz
./mdbook --version
./mdbook-mermaid --version
export PATH=$PATH:$(pwd)
mdbook --version
mdbook-mermaid --version
- name: Build 🛠
run: |
./mdbook test
./mdbook build
export PATH=$PATH:$(pwd)
mdbook test
mdbook build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/rfc_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ jobs:
- name: Test 🧪
run: |
export PATH=$PATH:$(pwd)
mdbook test
mdbook build

0 comments on commit 73a0653

Please sign in to comment.