Create website.yml
This commit is contained in:
21
.github/workflows/website.yml
vendored
Normal file
21
.github/workflows/website.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user