1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-19 22:24:40 +01:00
actix-web/.github/workflows/upload-doc.yml

33 lines
770 B
YAML
Raw Normal View History

2021-02-27 19:57:09 +00:00
name: Upload Documentation
2020-02-08 04:28:34 +09:00
on:
push:
2021-02-27 19:57:09 +00:00
branches: [master]
2020-02-08 04:28:34 +09:00
permissions: {}
2020-02-08 04:28:34 +09:00
jobs:
build:
permissions:
contents: write # to push changes in repo (jamesives/github-pages-deploy-action)
2020-02-08 04:28:34 +09:00
runs-on: ubuntu-latest
steps:
2020-08-13 16:04:50 +09:00
- uses: actions/checkout@v2
2020-02-08 04:28:34 +09:00
- uses: dtolnay/rust-toolchain@nightly
2020-02-08 04:28:34 +09:00
2021-02-27 19:57:09 +00:00
- name: Build Docs
run: cargo +nightly doc --no-deps --workspace --all-features
env:
RUSTDOCFLAGS: --cfg=docsrs
2020-02-08 04:28:34 +09: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-08 04:28:34 +09:00
2020-08-13 16:04:50 +09:00
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.4.1
2020-08-13 16:04:50 +09:00
with:
2022-09-03 21:56:37 +01:00
folder: target/doc
single-commit: true