Browse Source

Try 2 - Fixes #1745 - Github action to generate API docs

Charlie Kindel 2 years ago
parent
commit
1011f4c8e9
1 changed files with 10 additions and 4 deletions
  1. 10 4
      .github/workflows/api-docs.yml

+ 10 - 4
.github/workflows/api-docs.yml

@@ -1,12 +1,18 @@
+name: Build and publish API docs
+
+on:
+  push:
+    branches: [main]
+
 jobs:
-  build-publish-api-docs:
+  build:
     runs-on: ubuntu-latest
-    name: Build and publish API docs
+
     steps:
     - uses: actions/checkout@v1
     # ...
-    - uses: nikeee/[email protected]
-      name: Build API Documentation
+    - name: Use docfx to build API Docs
+      uses: nikeee/[email protected]
       with:
         args: docfx/docfx.json