chore: prepare to release tower-0.5.0, tower-layer-0.3.3, tower-servi… #219
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy API Documentation | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install nightly Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
- name: Generate documentation | |
run: cargo doc --workspace --no-deps --all-features | |
env: | |
# Enable the RustDoc `#[doc(cfg(...))]` attribute. | |
RUSTDOCFLAGS: --cfg docsrs | |
- name: Deploy documentation | |
if: success() | |
uses: crazy-max/ghaction-github-pages@v1 | |
with: | |
target_branch: gh-pages | |
build_dir: target/doc | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |