mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-20 04:42:16 +03:00
f9b41dda30
https://github.com/rust-lang/mdBook/pull/1248#issuecomment-671528271 and removing jekyll
26 lines
607 B
YAML
26 lines
607 B
YAML
# From https://github.com/rust-lang/mdBook/pull/1248
|
|
name: Book
|
|
on: [push]
|
|
jobs:
|
|
book:
|
|
name: Build and Deploy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install mdbook
|
|
uses: peaceiris/actions-mdbook@v1
|
|
with:
|
|
mdbook-version: "0.3.7"
|
|
|
|
- name: Generate book from markdown
|
|
run: |
|
|
cd book
|
|
mdbook build
|
|
- name: Publish HTML
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./book/book/
|