@@ -2,46 +2,50 @@ name: Deploy Doc
22
33on :
44 push :
5- branches : [ main ]
65
76jobs :
8- # Build job
97 build :
108 # Specify runner + build & upload the static files as an artifact
119 runs-on : ubuntu-latest
1210 steps :
1311 - uses : actions/checkout@v4
14- - name : Build static files
15- env :
16- CARGO_TERM_COLOR : always
17- run : |
18- cargo doc --document-private-items --no-deps
19-
20- - name : Install rustc internal docs
21- run : |
22- rustup toolchain list -v
23- # Find toolchain path
24- export TOOLCHAIN=$(rustc --print sysroot)
25- echo "toolchain=\"$TOOLCHAIN\""
26- # Remove rustc book
27- rm $TOOLCHAIN/share/doc/rust/html/rustc -rf
28- # Download rustc API docs
29- rustup component add rustc-docs
30- # Move the docs to deployment path
31- mv $TOOLCHAIN/share/doc/rust/html/rustc target/doc/rustc
32-
33- - name : Prepare index.html
34- run : |
35- # Find toolchain name
36- export toolchain=$(rustc --print sysroot | grep -oP "nightly-\d{4}-\d{2}-\d{2}")
37- echo "toolchain=\"$toolchain\""
38- # Fill in toolchain placeholder in index.html
39- sed "s/nightly-xxxx-xx-xx/$toolchain/" .github/index.html > target/doc/index.html
40-
12+ # - name: Build static files
13+ # env:
14+ # CARGO_TERM_COLOR: always
15+ # run: |
16+ # cargo doc --document-private-items --no-deps
17+ #
18+ # - name: Install rustc internal docs
19+ # run: |
20+ # rustup toolchain list -v
21+ # # Find toolchain path
22+ # export TOOLCHAIN=$(rustc --print sysroot)
23+ # echo "toolchain=\"$TOOLCHAIN\""
24+ # # Remove rustc book
25+ # rm $TOOLCHAIN/share/doc/rust/html/rustc -rf
26+ # # Download rustc API docs
27+ # rustup component add rustc-docs
28+ # # Move the docs to deployment path
29+ # mv $TOOLCHAIN/share/doc/rust/html/rustc target/doc/rustc
30+ #
31+ # - name: Prepare index.html
32+ # run: |
33+ # # Find toolchain name
34+ # export toolchain=$(rustc --print sysroot | grep -oP "nightly-\d{4}-\d{2}-\d{2}")
35+ # echo "toolchain=\"$toolchain\""
36+ # # Fill in toolchain placeholder in index.html
37+ # sed "s/nightly-xxxx-xx-xx/$toolchain/" .github/index.html > target/doc/index.html
38+ #
39+ # - name: Upload static files as artifact
40+ # uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
41+ # with:
42+ # path: target/doc/
43+ - name : Build UI
44+ run : cd ui && npm i && NUXT_APP_BASE_URL=/distributed-verification/ npm run generate
4145 - name : Upload static files as artifact
42- uses : actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
46+ uses : actions/upload-pages-artifact@v3
4347 with :
44- path : target/doc /
48+ path : ui/.output/public /
4549
4650 # Deployment job
4751 deploy :
0 commit comments