build(deps): bump docker/build-push-action in /.github/workflows (#868) #460
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: Rust AutoDoc | |
env: | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
RUSTFLAGS: "-A warnings" | |
on: | |
push: | |
branches: master | |
pull_request: | |
branches: master | |
jobs: | |
autodoc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust stable | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: rust-src | |
target: wasm32-unknown-unknown | |
- name: Install protobuf-compiler | |
run: | | |
sudo apt-get install protobuf-compiler | |
- name: Setup sccache | |
uses: mozilla-actions/[email protected] | |
- name: Build the docs | |
run: | | |
cargo doc --all --no-deps | |
cp -f .maintain/index.html target/doc | |
- name: Deploy the docs | |
if: github.event_name != 'pull_request' | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./target/doc |