File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : docbot
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+
7
+ env :
8
+ CARGO_TERM_COLOR : always
9
+
10
+ jobs :
11
+ build :
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Build
18
+ run : cargo build --verbose
19
+ - name : Create Documentation
20
+ run : cargo doc
21
+ - name : Push Documentation
22
+ run : |
23
+ mkdir doc-src && git clone https://github.com/tmthecoder/docs doc-src
24
+ cd doc-src
25
+ echo "docs.tmthecoder.dev" > CNAME
26
+ git config user.name "Docbot"
27
+ git config user.email "[email protected] "
28
+ if [ -d xotp/ ]; then rm -Rf xotp/; fi
29
+ cp -R ../target/doc/ xotp/
30
+ ln -s xotp/xotp/index.html xotp/index.html
31
+ git remote add secure-origin https://${{ secrets.ACCESS_TOKEN }}@github.com/tmthecoder/docs
32
+ git add .
33
+ git commit -m "Updated documentation for xotp" --allow-empty
34
+ git push secure-origin main
You can’t perform that action at this time.
0 commit comments