Create gh-pages.yml

This commit is contained in:
Harald Hoyer 2020-03-03 15:01:25 +01:00 committed by GitHub
parent 648dc871c2
commit 903f245278
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

24
.github/workflows/gh-pages.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: github pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Build mdbook
run: cargo install mdbook
- name: Build
run: mdbook build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./book