Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 0cb62e3

Browse files
authored
Commit and Push to branch gh-pages
1 parent adfa536 commit 0cb62e3

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

.github/workflows/documentation.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,33 @@ on:
77
- 'src/**'
88

99
jobs:
10-
Generate_Documentation_on_Master_Push:
10+
Generate_Documentation:
1111
runs-on: ubuntu-latest
1212
steps:
13-
-
14-
name: Set up Project
13+
- name: Set up Project
1514
uses: actions/checkout@v2
16-
-
17-
name: Set up Node.js environment
15+
- name: Set up Node.js environment
1816
uses: actions/setup-node@v2
1917
with:
2018
node-version: 16
2119
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
2425
run: |
2526
yarn install --immutable --immutable-cache --check-cache
26-
-
27-
name: Generate Documentation
27+
- name: Generate Documentation
2828
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

0 commit comments

Comments
 (0)