mirror of
https://github.com/Rate-Limiting-Nullifier/rln-docs.git
synced 2026-01-08 03:33:51 -05:00
33 lines
786 B
YAML
33 lines
786 B
YAML
name: mdbook -> gh pages
|
|
|
|
on:
|
|
push:
|
|
# branches:
|
|
# - prod
|
|
pull_request:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-20.04
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: jontze/action-mdbook@v1
|
|
with:
|
|
token: ${{secrets.GITHUB_TOKEN}}
|
|
# Optional Plugins have to be enabled
|
|
use-linkcheck: true
|
|
use-mermaid: true
|
|
use-toc: true
|
|
use-opengh: true
|
|
- run: mdbook build
|
|
- run: cp -f ./src/images/favicon.svg ./book/
|
|
- run: cp -f ./src/images/favicon.png ./book/
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./book
|