Merge pull request #52 from rust-lang/feature/deploy-docs
Deploy documentation to GitHub Pages
This commit is contained in:
commit
c7d031cf31
1 changed files with 30 additions and 0 deletions
30
.github/workflows/doc.yml
vendored
Normal file
30
.github/workflows/doc.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
name: Documentation
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Deploy Documentation
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Setup Rust
|
||||||
|
run: |
|
||||||
|
rustup update nightly --no-self-update
|
||||||
|
rustup default nightly
|
||||||
|
|
||||||
|
- name: Build Documentation
|
||||||
|
run: cargo doc --no-deps
|
||||||
|
|
||||||
|
- name: Deploy Documentation
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
|
publish_branch: gh-pages
|
||||||
|
publish_dir: ./target/doc
|
Loading…
Reference in a new issue