Create website.yml

This commit is contained in:
Alexis Mousset
2019-11-30 12:39:56 +00:00
committed by GitHub
parent afc11951a6
commit 2200cf407d

21
.github/workflows/website.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Website
on:
push:
branches:
- v0.9.x
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: cargo install mdbook mdbook-linkcheck
- run: cd website && mdbook build
- run: echo "lettre.at" > website/_book/html/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./website/_book