wgpu/.github/workflows/docs.yml

26 lines
503 B
YAML
Raw Normal View History

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