File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 67
67
components : rustfmt
68
68
override : true
69
69
- name : Run fmt check
70
- run : cargo fmt --all -- --check
70
+ run : cargo fmt --all -- --check
71
+
72
+ # publish rustdoc to a gh-pages branch on pushes to master
73
+ # this can be helpful to those depending on the mainline branch
74
+ publish-docs :
75
+ if : github.ref == 'refs/heads/master'
76
+ runs-on : ubuntu-latest
77
+ needs : [build]
78
+ steps :
79
+ - name : Set up Rust
80
+ uses : hecrj/setup-rust-action@v1
81
+ - uses : actions/checkout@v2
82
+ - name : Generate Docs
83
+ run : |
84
+ cargo doc --no-deps
85
+ echo "<meta http-equiv=refresh content=0;url=`lambda/index.html>" > target/doc/index.html
86
+ - name : Publish
87
+ uses : peaceiris/actions-gh-pages@v3
88
+ with :
89
+ github_token : ${{ secrets.GITHUB_TOKEN }}
90
+ publish_dir : ./target/doc
You can’t perform that action at this time.
0 commit comments