Merge pull request #23 from o1-labs/dw/remove-publish-job #34
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 Docs to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: GitHub Pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup OCaml (because of ocaml-gen) | |
run: | | |
sudo apt update | |
sudo apt install -y opam | |
opam init -y | |
- name: Build Rust Documentation | |
run: | | |
rustup install nightly | |
RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly doc --all --no-deps | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./target/doc |