This repository was archived by the owner on Apr 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Original file line number Diff line number Diff line change 7
7
- ' src/**'
8
8
9
9
jobs :
10
- Generate_Documentation_on_Master_Push :
10
+ Generate_Documentation :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- -
14
- name : Set up Project
13
+ - name : Set up Project
15
14
uses : actions/checkout@v2
16
- -
17
- name : Set up Node.js environment
15
+ - name : Set up Node.js environment
18
16
uses : actions/setup-node@v2
19
17
with :
20
18
node-version : 16
21
19
cache : ' yarn'
22
- -
23
- name : Checkout frontend
20
+ - name : Checkout docs branch and hardsync with master
21
+ run : |
22
+ git checkout gh-pages 2>/dev/null || git checkout -b gh-pages
23
+ git reset --hard master
24
+ - name : Setup yarn
24
25
run : |
25
26
yarn install --immutable --immutable-cache --check-cache
26
- -
27
- name : Generate Documentation
27
+ - name : Generate Documentation
28
28
run : yarn docs
29
+ - name : setup git config
30
+ run : |
31
+ git config user.name "GitHub Actions Bot"
32
+ git config user.email "<>"
33
+ - name : Commit
34
+ run : |
35
+ TIMESTAMP=`date +%s`
36
+ git add docs
37
+ git commit -m "Generated docs: $TIMESTAMP"
38
+ - name : Push
39
+ run : git push -u origin gh-pages
You can’t perform that action at this time.
0 commit comments