2020-06-18 15:50:21 +00:00
|
|
|
name: Documentation
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-06-23 01:53:50 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2020-06-18 15:50:21 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-06-23 01:53:50 +00:00
|
|
|
build:
|
2020-06-18 15:50:21 +00:00
|
|
|
runs-on: ubuntu-latest
|
2020-06-23 01:53:50 +00:00
|
|
|
|
2020-06-18 15:50:21 +00:00
|
|
|
steps:
|
2020-06-23 01:53:50 +00:00
|
|
|
- name: Checkout the code
|
|
|
|
uses: actions/checkout@v2
|
2020-06-18 15:50:21 +00:00
|
|
|
|
2020-06-23 01:53:50 +00:00
|
|
|
- name: Build the docs
|
2020-06-18 15:50:21 +00:00
|
|
|
run: cargo doc --lib --all-features
|
|
|
|
|
2020-06-23 01:53:50 +00:00
|
|
|
- name: Deploy the docs
|
2020-06-18 15:50:21 +00:00
|
|
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
|
|
|
with:
|
2020-06-23 01:53:50 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2020-06-18 15:50:21 +00:00
|
|
|
BRANCH: gh-pages
|
|
|
|
FOLDER: target/doc
|
|
|
|
TARGET_FOLDER: doc
|