fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
e9798827
cleanup
1name : Docs-CI/CD 2 3on : 4push : 5branches : 6- main 7pull_request : 8types : 9- opened 10- synchronize 11 12jobs : 13docs : 14name : Docs 15runs-on : ubuntu-latest 16steps : 17- uses : actions/checkout@master 18- name : Install Rust 19run : | 20rustup set profile minimal 21rustup toolchain install stable 22rustup default stable 23- name : Install latest mdbook 24run : | 25tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name') 26url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz" 27mkdir bin 28curl -sSL $url | tar -xz --directory=bin 29echo "$(pwd)/bin" >> $GITHUB_PATH 30- name : Run tests 31run : mdbook build 32working-directory : docs 33- name : Deploy to GitHub Pages 34if : github.ref == 'refs/heads/main' 35uses : JamesIves/github-pages-deploy-action@4.1.7 36with : 37branch : gh-pages # The branch the action should deploy to. 38folder : docs/book # The folder the action should deploy.