2021-02-27 19:57:09 +00:00
|
|
|
name: Upload Documentation
|
2020-02-07 19:28:34 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-02-27 19:57:09 +00:00
|
|
|
branches: [master]
|
2020-02-07 19:28:34 +00:00
|
|
|
|
2022-11-04 00:42:22 +00:00
|
|
|
permissions: {}
|
2020-02-07 19:28:34 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
2022-11-04 00:42:22 +00:00
|
|
|
permissions:
|
|
|
|
contents: write # to push changes in repo (jamesives/github-pages-deploy-action)
|
|
|
|
|
2020-02-07 19:28:34 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-08-13 07:04:50 +00:00
|
|
|
- uses: actions/checkout@v2
|
2020-02-07 19:28:34 +00:00
|
|
|
|
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2020-11-09 14:01:36 +00:00
|
|
|
toolchain: nightly-x86_64-unknown-linux-gnu
|
2020-02-07 19:28:34 +00:00
|
|
|
profile: minimal
|
|
|
|
override: true
|
|
|
|
|
2021-02-27 19:57:09 +00:00
|
|
|
- name: Build Docs
|
2020-02-07 19:28:34 +00:00
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: doc
|
2021-02-07 20:33:53 +00:00
|
|
|
args: --workspace --all-features --no-deps
|
2020-02-07 19:28:34 +00:00
|
|
|
|
|
|
|
- name: Tweak HTML
|
2021-02-27 19:57:09 +00:00
|
|
|
run: echo '<meta http-equiv="refresh" content="0;url=actix_web/index.html">' > target/doc/index.html
|
2020-02-07 19:28:34 +00:00
|
|
|
|
2020-08-13 07:04:50 +00:00
|
|
|
- name: Deploy to GitHub Pages
|
2022-10-30 19:47:49 +00:00
|
|
|
uses: JamesIves/github-pages-deploy-action@v4.4.1
|
2020-08-13 07:04:50 +00:00
|
|
|
with:
|
2022-09-03 20:56:37 +00:00
|
|
|
folder: target/doc
|
|
|
|
single-commit: true
|