Skip to content

fix(nvim): cbfmt working #167

fix(nvim): cbfmt working

fix(nvim): cbfmt working #167

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@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/cache@v3
id: cache-ublock-mdbook-build
with: # restore mdbook preprocessor build if possible
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-ublock-mdbook-${{ hashFiles('**/ublock-mdbook/**') }} }}
restore-keys: |
${{ runner.os }}-ublock-mdbook-
- uses: actions-rs/cargo@v1
if: steps.cache-ublock-mdbook-build.outputs.cache-hit != 'true'
with:
command: install
args: --path ublock-mdbook/
- uses: actions/cache/save@v3
id: cache-ublock-mdbook-build-save
with: # save mdbook preprocessor build as cache
path: |
~/.cargo/bin/ublock-mdbook
key: ${{ steps.cache-ublock-mdbook-build.outputs.cache-primary-key }}
- 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