rust-documentation.yml (c4016ce5e01824a90bfdd2159ea8004eb7b29eef) rust-documentation.yml (dcefb99bf4e43737baea662a94271a0fc9c30aca)
1name: Rust Documentation
2
3on:
4 push:
1name: Rust Documentation
2
3on:
4 push:
5 branches:
6 - main
7 - jeremy/rust
8 tags: '*'
9
10jobs:
5
6jobs:
11 build:
7 test:
12 strategy:
13 matrix:
14 os: [ubuntu-20.04]
8 strategy:
9 matrix:
10 os: [ubuntu-20.04]
11 compiler: [clang]
15
16 runs-on: ${{ matrix.os }}
17
18 steps:
19 - name: Environment setup
20 uses: actions/checkout@v2
21 - name: Rust setup
22 uses: actions-rs/toolchain@v1
23 with:
12
13 runs-on: ${{ matrix.os }}
14
15 steps:
16 - name: Environment setup
17 uses: actions/checkout@v2
18 - name: Rust setup
19 uses: actions-rs/toolchain@v1
20 with:
24 toolchain: stable
21 toolchain: nightly
25 - name: Build documentation
26 run: |
22 - name: Build documentation
23 run: |
27 cargo doc --package libceed-sys --package libceed --no-deps
28 touch ./target/doc/.nojekyll
29 echo "<meta http-equiv=refresh content=0;url=libceed/index.html>" > ./target/doc/index.html
30 - name: Deploy documentation
31 uses: peaceiris/actions-gh-pages@v3
32 with:
33 external_repository: CEED/libCEED-rust-docs
34 deploy_key: ${{ secrets.RUST_DOCS_KEY }}
35 publish_dir: ./target/doc
24 cargo +nightly doc --package libceed-sys --package libceed --no-deps