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-07-23 21:13:04 +00:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2020-06-18 15:50:21 +00:00
|
|
|
|
2020-06-23 03:40:22 +00:00
|
|
|
- name: Install latest nightly
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
|
|
|
continue-on-error: true
|
|
|
|
|
|
|
|
- name: Build the docs (nightly)
|
|
|
|
run: |
|
|
|
|
cargo +nightly doc --lib --all-features
|
|
|
|
|
|
|
|
- name: Build the docs (stable)
|
|
|
|
run: cargo +stable doc --lib --all-features
|
|
|
|
if: ${{ failure() }}
|
2020-06-18 15:50:21 +00:00
|
|
|
|
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-07-23 21:13:04 +00:00
|
|
|
ACCESS_TOKEN: ${{ secrets.WEB_DEPLOY }}
|
2020-06-18 15:50:21 +00:00
|
|
|
FOLDER: target/doc
|
2020-07-23 20:51:10 +00:00
|
|
|
REPOSITORY_NAME: gfx-rs/wgpu-rs.github.io
|
|
|
|
BRANCH: master
|
2020-06-18 15:50:21 +00:00
|
|
|
TARGET_FOLDER: doc
|