File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed
Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change 99jobs :
1010 deploy :
1111 runs-on : ubuntu-latest
12+ permissions :
13+ pages : write
14+ id-token : write
15+ environment :
16+ name : github-pages
17+ url : ${{ steps.deployment.outputs.page_url }}
1218 steps :
13- - uses : actions/checkout@v2
14- - uses : actions-rs/toolchain@v1
19+ - uses : actions/checkout@v6
20+ - name : Build docs
21+ run : cargo doc --all --no-deps
22+ - uses : actions/upload-pages-artifact@v4
1523 with :
16- toolchain : stable
17- profile : minimal
18- override : true
19- components : rustfmt, rust-src
20- - uses : actions-rs/cargo@v1
21- with :
22- command : doc
23- args : --all --no-deps
24- - uses : peaceiris/actions-gh-pages@v3
25- if : ${{ github.ref == 'refs/heads/main' }}
26- with :
27- github_token : ${{ secrets.GITHUB_TOKEN }}
28- publish_dir : ./target/doc
24+ path : target/doc
25+ - id : deployment
26+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments