diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index a190b23..3d7a8cc 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -23,13 +23,34 @@ jobs:
with:
dotnet-version: 5.0.202
+ - name: Setup Node.js
+ uses: actions/setup-node@v2
+ with:
+ node-version: '14'
+
+ - name: Cache dependencies
+ uses: actions/cache@v2
+ with:
+ path: ~/.npm
+ key: npm-${{ hashFiles('package-lock.json') }}
+ restore-keys: npm-
+
- name: Build
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd docs
+ npm i
dotnet run --configuration Release
+ npm run build
+
+ - name: Archive doc generation
+ uses: actions/upload-artifact@v2
+ with:
+ name: documentation-output
+ path: docs/output/
+ retention-days: 5
###################################################
# BUILD
@@ -76,7 +97,7 @@ jobs:
run: |
dotnet tool restore
dotnet cake
-
+
- name: Upload Verify Test Results
if: failure()
uses: actions/upload-artifact@v2
diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
index 8f2efd9..8ee1dd4 100644
--- a/.github/workflows/docs.yaml
+++ b/.github/workflows/docs.yaml
@@ -26,10 +26,25 @@ jobs:
with:
dotnet-version: 5.0.202
+ - name: Setup Node.js
+ uses: actions/setup-node@v2
+ with:
+ node-version: '14'
+
+ - name: Cache dependencies
+ uses: actions/cache@v2
+ with:
+ path: ~/.npm
+ key: npm-${{ hashFiles('package-lock.json') }}
+ restore-keys: npm-
+
- name: Publish
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd docs
- dotnet run --configuration Release -- deploy
+ npm i
+ dotnet run --configuration Release
+ npm run build
+ dotnet run -- deploy
diff --git a/.gitignore b/.gitignore
index 8c56e1c..664051d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -88,4 +88,6 @@ packages
# Windows
Thumbs.db
-*.received.*
\ No newline at end of file
+*.received.*
+
+node_modules
\ No newline at end of file
diff --git a/docs/Docs.csproj b/docs/Docs.csproj
index 19c7e42..e338448 100644
--- a/docs/Docs.csproj
+++ b/docs/Docs.csproj
@@ -31,7 +31,7 @@