1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 17:52:56 +01:00
actix-web/.github/workflows/upload-doc.yml

36 lines
840 B
YAML
Raw Normal View History

2021-02-27 20:57:09 +01:00
name: Upload Documentation
2020-02-07 20:28:34 +01:00
on:
push:
2021-02-27 20:57:09 +01:00
branches: [master]
2020-02-07 20:28:34 +01:00
jobs:
build:
runs-on: ubuntu-latest
steps:
2020-08-13 09:04:50 +02:00
- uses: actions/checkout@v2
2020-02-07 20:28:34 +01:00
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-x86_64-unknown-linux-gnu
2020-02-07 20:28:34 +01:00
profile: minimal
override: true
2021-02-27 20:57:09 +01:00
- name: Build Docs
2020-02-07 20:28:34 +01:00
uses: actions-rs/cargo@v1
with:
command: doc
2021-02-07 21:33:53 +01:00
args: --workspace --all-features --no-deps
2020-02-07 20:28:34 +01:00
- name: Tweak HTML
2021-02-27 20:57:09 +01:00
run: echo '<meta http-equiv="refresh" content="0;url=actix_web/index.html">' > target/doc/index.html
2020-02-07 20:28:34 +01:00
2020-08-13 09:04:50 +02:00
- name: Deploy to GitHub Pages
2020-11-24 01:29:13 +01:00
uses: JamesIves/github-pages-deploy-action@3.7.1
2020-08-13 09:04:50 +02:00
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: target/doc