1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-30 05:21:09 +00:00
actix-web/.github/workflows/upload-doc.yml

42 lines
894 B
YAML
Raw Normal View History

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
2023-03-15 13:32:55 +00:00
permissions:
2023-09-12 04:24:55 +00:00
contents: read
2023-10-29 01:56:10 +00:00
2023-03-15 13:32:55 +00:00
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2020-02-07 19:28:34 +00:00
jobs:
build:
permissions:
2023-09-12 04:24:55 +00:00
contents: write
2020-02-07 19:28:34 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2020-02-07 19:28:34 +00:00
2023-09-12 04:24:55 +00:00
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: nightly
2020-02-07 19:28:34 +00: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-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
uses: JamesIves/github-pages-deploy-action@v4.4.3
2020-08-13 07:04:50 +00:00
with:
2022-09-03 20:56:37 +00:00
folder: target/doc
single-commit: true