File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Docusaurus Documentation Site
2
+ on :
3
+ push :
4
+ branches : [main]
5
+ jobs :
6
+ build-docs :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v3
10
+ with :
11
+ persist-credentials : false
12
+ fetch-depth : 0
13
+
14
+ - uses : pnpm/action-setup@v2
15
+ with :
16
+ version : latest
17
+ run_install : false
18
+
19
+ - uses : actions/setup-node@v3
20
+ with :
21
+ node-version : 16
22
+ cache : ' pnpm'
23
+
24
+ - name : Install dependencies
25
+ run : |
26
+ pnpm install
27
+ pnpm --filter "./apps/documentation" install
28
+
29
+ - name : Create local build artifacts
30
+ run : |
31
+ echo "Building documentation..."
32
+ npx nx build-external-docs documentation
33
+
34
+ - name : Init git and commit local artifacts
35
+ run : |
36
+ cd dist/apps/documentation
37
+ git init
38
+ git add .
39
+ git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
40
+ git config --local user.name "github-actions[bot]"
41
+ git commit -am "docs: build doc"
42
+
43
+ - name : Push
44
+ uses : ad-m/github-push-action@master
45
+ with :
46
+ github_token : ${{ secrets.GITHUB_TOKEN }}
47
+ branch : docs
48
+ force : true
49
+ directory : dist/apps/documentation
You can’t perform that action at this time.
0 commit comments