Skip to content

Commit 5df9512

Browse files
ChausseaumoineGOURIOU Lénaïck
andauthored
fix(github pages): add documentation workflow (#31)
Co-authored-by: GOURIOU Lénaïck <[email protected]>
1 parent 1da50e3 commit 5df9512

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ jobs:
3030
steps:
3131
- name: git clone
3232
uses: actions/checkout@v4
33-
- name: Install Rust toolchain
34-
uses: actions-rs/toolchain@v1
35-
with:
36-
toolchain: nightly
37-
- name: cargo +nightly doc
38-
run: RUSTDOCFLAGS="-Z unstable-options --enable-index-page" cargo +nightly doc --all-features
33+
- name: install toolchain
34+
uses: dtolnay/rust-toolchain@nightly
35+
- name: cargo doc
36+
run: RUSTDOCFLAGS="-Z unstable-options --enable-index-page" cargo doc --all-features
3937
- name: page configuration
4038
uses: actions/configure-pages@v3
4139
- name: Upload artifact
@@ -45,4 +43,4 @@ jobs:
4543
path: 'target/doc'
4644
- name: Deploy to GitHub Pages
4745
id: deployment
48-
uses: actions/deploy-pages@v4
46+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)