fix: Require rustls-platform-verifier 0.3.2 to avoid multiple crypto … #748
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: docs | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
docs: | |
name: build rustdocs and put them on github pages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
components: rustfmt, clippy | |
override: true | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
- name: get-cmake | |
uses: lukka/[email protected] | |
- name: Build Documentation | |
run: >- | |
RUSTDOCFLAGS="-Z unstable-options --enable-index-page" | |
cargo +nightly doc | |
--no-deps | |
--features smol,trillium-testing/smol | |
--all | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Fix permissions | |
run: | | |
chmod -c -R +rX "./target/doc" | while read line; do | |
echo "::warning title=Invalid file permissions automatically fixed::$line" | |
done | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./target/doc | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |