File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy Docs
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
11+
12+ concurrency :
13+ group : pages
14+ cancel-in-progress : false
15+
16+ jobs :
17+ deploy :
18+ environment :
19+ name : github-pages
20+ url : ${{ steps.deployment.outputs.page_url }}
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v4
24+ - uses : dtolnay/rust-toolchain@stable
25+ with :
26+ targets : x86_64-pc-windows-gnu
27+ - run : sudo apt-get install -y gcc-mingw-w64-x86-64
28+ - run : cargo doc --workspace --no-deps --target x86_64-pc-windows-gnu --features doc-images
29+ - run : echo '<meta http-equiv="refresh" content="0; url=docs/index.html">' > target/x86_64-pc-windows-gnu/doc/index.html
30+ - uses : actions/upload-pages-artifact@v3
31+ with :
32+ path : target/x86_64-pc-windows-gnu/doc
33+ - uses : actions/deploy-pages@v4
34+ id : deployment
You can’t perform that action at this time.
0 commit comments