mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 16:24:24 +00:00
[rs] Merge #389
389: build master docs r=grovesNL,kvark a=dakom builds docs and deploys to `doc/` folder on gh_pages branch doesn't interfere with other gh_pages contents. assumes `ACCESS_TOKEN` is set as a github secret (if it isn't, please see https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line) see live example on my fork: https://dakom.github.io/wgpu-rs/doc/wgpu/index.html * closes #379 Co-authored-by: David Komer <david.komer@gmail.com>
This commit is contained in:
commit
6947184d55
23
.github/workflows/docs.yml
vendored
Normal file
23
.github/workflows/docs.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: Documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
bundle:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout repo
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: build documentation
|
||||
run: cargo doc --lib --all-features
|
||||
|
||||
- name: Deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||
with:
|
||||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
BRANCH: gh-pages
|
||||
FOLDER: target/doc
|
||||
TARGET_FOLDER: doc
|
Loading…
Reference in New Issue
Block a user