mirror of
https://github.com/CryptKeeperZK/Docs.git
synced 2026-01-07 20:03:57 -05:00
34 lines
793 B
YAML
34 lines
793 B
YAML
name: github pages
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-20.04
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install cargo-sort from git
|
|
uses: baptiste0928/cargo-install@v2
|
|
with:
|
|
crate: book-summary
|
|
- run: book-summary -n ./src -s cryptkeeper guides references -y
|
|
|
|
- name: Setup mdBook
|
|
uses: peaceiris/actions-mdbook@v1
|
|
with:
|
|
mdbook-version: 'latest'
|
|
- 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
|