Skip to content

Bump actions/checkout from 3 to 4 #17

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #17

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'docs/**'
- 'theme/**'
- book.toml
- .github/workflows/docs.yaml
pull_request:
paths:
- 'docs/**'
- 'theme/**'
- book.toml
- .github/workflows/docs.yaml
permissions:
pages: write
id-token: write
jobs:
build-doc:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- name: Build
run: mdbook build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: "./book"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
if: github.event_name != 'pull_request'