Skip to content

chore: add build acceleration tricks #12

chore: add build acceleration tricks

chore: add build acceleration tricks #12

Workflow file for this run

name: Publish
on:
pull_request:
branches: [master]
push:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
id-token: write
pages: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "0.4.35"
- name: Build docs
run: mdbook build
- name: Setup GitHub Pages
if: github.event_name == 'push'
uses: actions/configure-pages@v3
- name: Upload Pages artifact
if: github.event_name == 'push'
uses: actions/upload-pages-artifact@v2
with:
path: book
- name: Deploy to GitHub Pages
if: github.event_name == 'push'
uses: actions/deploy-pages@v2