intermodal/.github/workflows/www.yaml
Casey Rodarmor e91b419af5
Improve book
- Write introduction
- Move large readme sections into book
- Rename docs to www

type: documentation
2020-04-07 19:01:30 -07:00

29 lines
602 B
YAML

name: WWW
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
all:
name: All
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: latest
- run: mdbook build book --dest-dir ../www/book
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{secrets.GITHUB_TOKEN}}
publish_branch: gh-pages
publish_dir: ./www