diff options
| author | Caleb Zulawski <caleb.zulawski@gmail.com> | 2020-12-27 19:36:12 -0500 |
|---|---|---|
| committer | Caleb Zulawski <caleb.zulawski@gmail.com> | 2020-12-27 19:36:12 -0500 |
| commit | cd36c983e7f4cf4a6bcab1430ae1d2060ec6136c (patch) | |
| tree | 2368c020be50bad940d6933848ef9004c05fc5b5 | |
| parent | a69c4414bc69d95d1ac1636cf2bc61deec21d936 (diff) | |
| download | rust-cd36c983e7f4cf4a6bcab1430ae1d2060ec6136c.tar.gz rust-cd36c983e7f4cf4a6bcab1430ae1d2060ec6136c.zip | |
Deploy documentation to GitHub Pages
| -rw-r--r-- | .github/workflows/doc.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml new file mode 100644 index 00000000000..4631bc65b38 --- /dev/null +++ b/.github/workflows/doc.yml @@ -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 |
