Skip to content

chore(docs): Update docs/README.md #293

chore(docs): Update docs/README.md

chore(docs): Update docs/README.md #293

Workflow file for this run

name: github pages
on:
push:
branches:
- master
workflow_dispatch: # allow manual trigger
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: install
args: --path ublock-mdbook/
- name: Setup mdbook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- name: Download custom highlight.js
run: mkdir -p theme && curl https://raw.githubusercontent.com/mrjones2014/highlight-js-nix/master/highlight.js -o theme/highlight.js
- name: Run mbdook build
run: mdbook build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./book