Skip to content

Commit

Permalink
update gihub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
john-cd committed Dec 22, 2023
1 parent 2447095 commit a6f7e95
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/mdbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# To get started with mdBook see: https://rust-lang.github.io/mdBook/index.html
#
name: Deploy mdBook site to Pages
# run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }}

on:
# Runs on pushes targeting the default branch
Expand All @@ -29,17 +30,24 @@ jobs:
build:
runs-on: ubuntu-latest
env:
MDBOOK_VERSION: 0.4.21
MDBOOK_VERSION: 0.4.36
steps:
- uses: actions/checkout@v3
- name: Install mdBook
- name: Install rustup
run: |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
rustup update
cargo install --version ${MDBOOK_VERSION} mdbook
- name: Install cargo binstall
run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
- name: Install mdbook
run: cargo binstall --version ${MDBOOK_VERSION} --no-confirm mdbook
- name: Install mdbook-keeper
run: cargo install mdbook-keeper --git https://github.com/tfpk/mdbook-keeper.git
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Build `deps` crate
run: cargo build
- name: Build with mdBook
run: mdbook build
- name: Upload artifact
Expand Down

0 comments on commit a6f7e95

Please sign in to comment.