Skip to content

Commit

Permalink
Set mdbook version as env var
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Oct 17, 2020
1 parent 9addcf7 commit c69ca68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ jobs:
rustup toolchain install nightly -c rust-docs
rustup default nightly
- name: Install mdbook
env:
MDBOOK_VER: v0.4.3
run: |
mkdir bin
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.3.5/mdbook-v0.3.5-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
curl -sSL https://github.com/rust-lang/mdBook/releases/download/${{ env.MDBOOK_VER }}/mdbook-${{ env.MDBOOK_VER }}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
echo "##[add-path]$(pwd)/bin"
- name: Report versions
run: |
Expand Down

0 comments on commit c69ca68

Please sign in to comment.