@@ -11,7 +11,7 @@ concurrency:
11
11
cancel-in-progress : true
12
12
13
13
env :
14
- BASE_PATH : com.zigurous.debug
14
+ PACKAGE_BASE_PATH : com.zigurous.debug
15
15
PACKAGE_TITLE : " Debug Tools"
16
16
17
17
jobs :
@@ -32,41 +32,12 @@ jobs:
32
32
token : ${{ secrets.DOCS_TOKEN }}
33
33
path : docs~
34
34
35
- - name : Setup dotnet
36
- uses : actions/setup-dotnet@v1
37
- with :
38
- dotnet-version : 3.1.x
39
-
40
- - name : Setup docfx
41
- uses : crazy-max/ghaction-chocolatey@v1
42
- with :
43
- args : install docfx
44
-
45
- - name : Setup node
46
- uses : actions/setup-node@v3
47
- with :
48
- node-version : 14
49
- cache : yarn
50
- cache-dependency-path : docs~/yarn.lock
51
-
52
- - name : Install dependencies
53
- working-directory : docs~
54
- run : yarn install
55
- env :
56
- NPM_TOKEN : ${{ secrets.DOCS_TOKEN }}
57
-
58
- - name : Generate documentation
59
- working-directory : docs~
60
- run : yarn generate $env:BASE_PATH $env:PACKAGE_TITLE
61
- env :
62
- NPM_TOKEN : ${{ secrets.DOCS_TOKEN }}
63
-
64
35
- name : Build docs
65
- working-directory : docs~
66
- continue-on-error : false
67
- run : yarn build
68
- env :
69
- NPM_TOKEN : ${{ secrets.DOCS_TOKEN }}
36
+ uses : ./ docs~/.github/actions/build-docs
37
+ with :
38
+ npm_token : ${{ secrets.DOCS_TOKEN }}
39
+ package_base_path : ${{ env.PACKAGE_BASE_PATH }}
40
+ package_title : ${{ env.PACKAGE_TITLE }}
70
41
71
42
- name : Upload artifact
72
43
uses : actions/upload-artifact@v3
0 commit comments