2020-02-07 19:28:34 +00:00
|
|
|
name: Upload documentation
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository == 'actix/actix-web'
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
- name: check build
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: doc
|
2020-04-07 19:42:38 +00:00
|
|
|
args: --no-deps --workspace --all-features
|
2020-02-07 19:28:34 +00:00
|
|
|
|
|
|
|
- name: Tweak HTML
|
|
|
|
run: echo "<meta http-equiv=refresh content=0;url=os_balloon/index.html>" > target/doc/index.html
|
|
|
|
|
2020-08-13 07:04:50 +00:00
|
|
|
- name: Deploy to GitHub Pages
|
|
|
|
uses: JamesIves/github-pages-deploy-action@3.5.8
|
|
|
|
with:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
BRANCH: gh-pages
|
|
|
|
FOLDER: target/doc
|