name: Publish Rust Docs on: push: branches: - master jobs: deploy-docs: name: Deploy docs runs-on: ubuntu-latest steps: - name: Install tooling run: | sudo apt-get install -y protobuf-compiler protoc --version - name: Checkout repository uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - name: Rust versions run: rustup show - name: Rust cache uses: Swatinem/rust-cache@6fd3edff6979b79f87531400ad694fb7f2c84b1f # v2.2.1 - name: Build rustdocs run: SKIP_WASM_BUILD=1 cargo doc --all --no-deps - name: Make index.html run: echo "" > ./target/doc/index.html - name: Deploy documentation uses: peaceiris/actions-gh-pages@de7ea6f8efb354206b205ef54722213d99067935 # v3.9.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_branch: gh-pages publish_dir: ./target/doc