mirror of
https://github.com/tlsnotary/tlsn.git
synced 2026-01-09 14:48:13 -05:00
* clean up github actions #537 #536 * Improved README.md (clang + openssl-dev) #536 + removed stale build script #537 * chore: add build script for tlsn-wasm #536 #549
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: rustdoc
|
|
|
|
on:
|
|
push:
|
|
branches: [dev]
|
|
pull_request:
|
|
branches: [dev]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
|
|
|
jobs:
|
|
rustdoc:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Rust Toolchain (Stable)
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: "rustdoc"
|
|
run: cargo doc -p tlsn-core -p tlsn-prover -p tlsn-verifier --no-deps --all-features
|
|
# --target-dir ${GITHUB_WORKSPACE}/docs
|
|
|
|
# https://dev.to/deciduously/prepare-your-rust-api-docs-for-github-pages-2n5i
|
|
- name: "Add index file -> tlsn_prover"
|
|
run: |
|
|
echo "<meta http-equiv=\"refresh\" content=\"0; url=tlsn_prover\">" > target/doc/index.html
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
if: ${{ github.ref == 'refs/heads/dev' }}
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: target/doc/
|
|
# cname: rustdocs.tlsnotary.org
|