@@ -11,7 +11,7 @@ concurrency:
1111 cancel-in-progress : true
1212
1313env :
14- BASE_PATH : com.zigurous.ui
14+ PACKAGE_BASE_PATH : com.zigurous.ui
1515 PACKAGE_TITLE : " UI Toolkit"
1616
1717jobs :
@@ -32,41 +32,12 @@ jobs:
3232 token : ${{ secrets.DOCS_TOKEN }}
3333 path : docs~
3434
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-
6435 - 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 }}
7041
7142 - name : Upload artifact
7243 uses : actions/upload-artifact@v3
0 commit comments