From a6f7e95bd361e3f20e990d7b80cc96e924da2131 Mon Sep 17 00:00:00 2001 From: S John CD Date: Fri, 22 Dec 2023 20:34:26 +0000 Subject: [PATCH] update gihub workflow --- .github/workflows/mdbook.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mdbook.yml b/.github/workflows/mdbook.yml index b1ee208f..86d3c2b9 100644 --- a/.github/workflows/mdbook.yml +++ b/.github/workflows/mdbook.yml @@ -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 @@ -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