Merge pull request #1983 from actions/mdbook-revisions

Update `mdbook.yml`, primarily to update to `actions/configure-pages@v3`
This commit is contained in:
James M. Greene
2023-03-14 11:05:13 -05:00
committed by GitHub
+9 -12
View File
@@ -22,34 +22,31 @@ permissions:
concurrency: concurrency:
group: "pages" group: "pages"
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
# This workflow contains a single job called "build" # Build job
build: build:
env:
MDBOOK_VERSION : 0.4.21
# The type of runner that the job will run on
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
# Steps represent a sequence of tasks that will be executed as part of the job MDBOOK_VERSION: 0.4.21
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install mdBook
# Runs a single command using the runners shell
- name: install mdbook
run: | run: |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
rustup update rustup update
cargo install --version ${MDBOOK_VERSION} mdbook cargo install --version ${MDBOOK_VERSION} mdbook
- name: Setup Pages - name: Setup Pages
id: pages id: pages
uses: actions/configure-pages@v1 uses: actions/configure-pages@v3
- name: Build with mdbook - name: Build with mdBook
run: mdbook build run: mdbook build
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v1 uses: actions/upload-pages-artifact@v1
with: with:
path: ./book path: ./book
# Deployment job
deploy: deploy:
environment: environment:
name: github-pages name: github-pages