File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments