mirror of
https://github.com/status-im/nim-style-guide.git
synced 2025-02-23 11:38:23 +00:00
37 lines
805 B
YAML
37 lines
805 B
YAML
name: github pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions-rs/install@v0.1
|
|
with:
|
|
crate: mdbook
|
|
use-tool-cache: true
|
|
version: "0.4.28"
|
|
- uses: actions-rs/install@v0.1
|
|
with:
|
|
crate: mdbook-toc
|
|
use-tool-cache: true
|
|
version: "0.11.2"
|
|
- uses: actions-rs/install@v0.1
|
|
with:
|
|
crate: mdbook-open-on-gh
|
|
use-tool-cache: true
|
|
version: "2.3.3"
|
|
- name: Build book
|
|
run: |
|
|
PATH=.cargo/bin:$PATH mdbook build
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./book
|