Skip to content

add --locked to install #37

add --locked to install

add --locked to install #37

Workflow file for this run

name: Deploy mdBook site to Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
env:
MDBOOK_VERSION: 0.4.37
MDBOOK_SVGBOB_VERSION: 0.2.1
steps:
- uses: actions/checkout@v4
- name: Install mdBook
run: |
cargo install --locked --version ${MDBOOK_VERSION} mdbook
cargo install --locked --version ${MDBOOK_SVGBOB_VERSION} mdbook-svgbob
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Build with mdBook
run: mdbook build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./book
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2