2021-03-22 11:46:02 +00:00
|
|
|
name: Upload Documentation
|
2020-01-30 14:44:05 +09:00
|
|
|
|
|
|
|
on:
|
2023-11-03 20:02:50 +00:00
|
|
|
push:
|
|
|
|
branches: [master]
|
2023-04-09 19:35:30 +01:00
|
|
|
|
2023-11-03 20:02:50 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2023-04-09 19:35:30 +01:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2020-01-30 14:44:05 +09:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-09-15 23:54:02 +00:00
|
|
|
- uses: actions/checkout@v4
|
2020-01-30 14:44:05 +09:00
|
|
|
|
2023-04-09 19:41:57 +01:00
|
|
|
- name: Install Rust (nightly)
|
2024-01-15 16:02:19 +00:00
|
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
|
2023-11-03 20:02:50 +00:00
|
|
|
with:
|
|
|
|
toolchain: nightly
|
2020-01-30 14:44:05 +09:00
|
|
|
|
2021-03-22 11:46:02 +00:00
|
|
|
- name: Build Docs
|
2023-11-03 20:02:50 +00:00
|
|
|
run: cargo doc --no-deps --workspace --all-features
|
2020-01-30 14:44:05 +09:00
|
|
|
|
|
|
|
- name: Tweak HTML
|
2021-03-22 11:46:02 +00:00
|
|
|
run: echo '<meta http-equiv="refresh" content="0;url=actix_cors/index.html">' > target/doc/index.html
|
2020-01-30 14:44:05 +09:00
|
|
|
|
2020-07-20 06:18:00 +09:00
|
|
|
- name: Deploy to GitHub Pages
|
2024-05-02 03:23:14 +01:00
|
|
|
uses: JamesIves/github-pages-deploy-action@v4.6.0
|
2020-07-20 06:18:00 +09:00
|
|
|
with:
|
2023-11-03 20:02:50 +00:00
|
|
|
folder: target/doc
|
|
|
|
branch: gh-pages
|