-
Notifications
You must be signed in to change notification settings - Fork 190
49 lines (46 loc) · 1.18 KB
/
build-doc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: "Build Doc"
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
jobs:
doc:
name: Build Doc
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.PAT }}
fetch-depth: 0
- name: Deploy doc
run: |
git config --global user.name binggg
git config --global user.email [email protected]
npm i
cd doc
git fetch
git checkout main
cd ../
npm run build:doc
cd doc
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -am "doc(framework): update framework doc"
git push
cd ../
git add .
git status
git commit -am "doc(readme): update readme doc"
git push
else
echo "no changes";
fi
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ failure() }}
with:
limit-access-to-actor: true