Skip to content

Commit b846855

Browse files
authored
make docket
1 parent 39f63f7 commit b846855

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/docbot.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

0 commit comments

Comments
 (0)