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
|
|
|
|
2023-03-15 14:32:55 +01:00
|
|
|
permissions:
|
2023-09-12 06:24:55 +02:00
|
|
|
contents: read
|
2023-10-29 02:56:10 +01:00
|
|
|
|
2023-03-15 14:32:55 +01:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-02-07 20:28:34 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
2022-11-04 01:42:22 +01:00
|
|
|
permissions:
|
2023-09-12 06:24:55 +02:00
|
|
|
contents: write
|
2022-11-04 01:42:22 +01:00
|
|
|
|
2020-02-07 20:28:34 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-09-12 06:44:47 +02:00
|
|
|
- uses: actions/checkout@v4
|
2020-02-07 20:28:34 +01:00
|
|
|
|
2023-09-12 06:24:55 +02:00
|
|
|
- name: Install Rust
|
2024-01-15 02:24:21 +01:00
|
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
|
2023-09-12 06:24:55 +02:00
|
|
|
with:
|
|
|
|
toolchain: nightly
|
2020-02-07 20:28:34 +01:00
|
|
|
|
2021-02-27 20:57:09 +01:00
|
|
|
- name: Build Docs
|
2022-11-25 18:00:59 +01:00
|
|
|
run: cargo +nightly doc --no-deps --workspace --all-features
|
|
|
|
env:
|
|
|
|
RUSTDOCFLAGS: --cfg=docsrs
|
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
|
2024-05-20 11:30:27 +02:00
|
|
|
uses: JamesIves/github-pages-deploy-action@v4.6.1
|
2020-08-13 09:04:50 +02:00
|
|
|
with:
|
2022-09-03 22:56:37 +02:00
|
|
|
folder: target/doc
|
|
|
|
single-commit: true
|