mirror of
https://github.com/AtHeartEngineer/docs-mdbook.git
synced 2026-01-09 00:58:13 -05:00
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: github pages
|
|
|
|
on:
|
|
push:
|
|
|
|
# Lookup compatible version numbers at: https://github.com/lzanini/mdbook-katex/releases
|
|
env:
|
|
mdbook-version: '0.4.32'
|
|
katex-version: '0.5.5'
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-22.04
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Fetch mdbook-katex
|
|
uses: dsaltares/fetch-gh-release-asset@master
|
|
with:
|
|
repo: lzanini/mdbook-katex
|
|
version: tags/v${{env.katex-version}}
|
|
file: "mdbook-katex-v${{env.katex-version}}-x86_64-unknown-linux-gnu.tar.gz"
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Install mdbook-katex
|
|
run: tar -xvf mdbook-katex-v${{env.katex-version}}-x86_64-unknown-linux-gnu.tar.gz -C /usr/local/bin
|
|
|
|
- name: Setup mdBook
|
|
uses: peaceiris/actions-mdbook@v1
|
|
with:
|
|
mdbook-version: ${{env.mdbook-version}}
|
|
|
|
- run: mdbook build
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./book/
|
|
cname: docs.tlsnotary.org
|