File tree 1 file changed +17
-2
lines changed
1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : gh-pages
2
2
3
+ permissions :
4
+ contents : read
5
+ pages : write
6
+ id-token : write
7
+
3
8
on :
4
9
push :
5
10
branches :
9
14
deploy :
10
15
name : GH-pages documentation
11
16
runs-on : ubuntu-latest
17
+ environment :
18
+ name : github-pages
19
+ url : https://rust-random.github.io/rand/
20
+
12
21
steps :
13
- - uses : actions/checkout@v3
22
+ - name : Checkout
23
+ uses : actions/checkout@v3
24
+
14
25
- name : Install toolchain
15
26
uses : dtolnay/rust-toolchain@nightly
16
- - name : doc (rand)
27
+
28
+ - name : Build docs
17
29
env :
18
30
RUSTDOCFLAGS : --cfg doc_cfg
19
31
# --all builds all crates, but with default features for other crates (okay in this case)
20
32
run : |
21
33
cargo doc --all --features nightly,serde1,getrandom,small_rng
22
34
cp utils/redirect.html target/doc/index.html
35
+
23
36
- name : Setup Pages
24
37
uses : actions/configure-pages@v2
38
+
25
39
- name : Upload artifact
26
40
uses : actions/upload-pages-artifact@v1
27
41
with :
28
42
path : ' ./target/doc'
43
+
29
44
- name : Deploy to GitHub Pages
30
45
id : deployment
31
46
uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments