Skip to content

Commit 410615d

Browse files
committed
add dargon2_interface's docbot
1 parent 288338b commit 410615d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: docbot (dargon2_interface)
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
defaults:
8+
run:
9+
working-directory: dargon2_interface
10+
11+
jobs:
12+
update-docs:
13+
14+
runs-on: ubuntu-latest
15+
container:
16+
image: google/dart:latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Install dependencies
20+
run: pub get
21+
- name: Generate Documentation
22+
run: dartdoc
23+
- name: Push Documentation
24+
run: |
25+
mkdir doc-src && git clone https://github.com/tmthecoder/docs doc-src
26+
cd doc-src
27+
echo "docs.tmthecoder.dev" > CNAME
28+
git config user.name "Docbot"
29+
git config user.email "[email protected]"
30+
if [ -d dargon2_interface/ ]; then rm -Rf dargon2_interface/; fi
31+
cp -R ../doc/api dargon2_interface/
32+
git remote add secure-origin https://${{ secrets.ACCESS_TOKEN }}@github.com/tmthecoder/dos
33+
git add .
34+
git commit -m "Updated documentation for dargon2_interface" --allow-empty
35+
git push secure-origin mainc

0 commit comments

Comments
 (0)