浏览代码

attempting to publish v1 AND v2 docs

Tigger Kindel 1 年之前
父节点
当前提交
ce2d40b088
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      .github/workflows/api-docs.yml

+ 6 - 3
.github/workflows/api-docs.yml

@@ -2,7 +2,7 @@ name: Build and publish API docs
 
 on:
   push:
-    branches: [main]
+    branches: [main, develop, v2_develop]
 
 jobs:
   generate-docs:
@@ -10,12 +10,13 @@ jobs:
 
     steps:
     - name: Checkout
-      uses: actions/checkout@v4
+      uses: actions/checkout@v3
 
     - name: Setup .NET Core
       uses: actions/[email protected]
       with:
-        dotnet-version: 6.0.100
+        dotnet-version: 7.0
+        dotnet-quality: 'ga'
     
     - name: Setup DocFX
       uses: crazy-max/ghaction-chocolatey@v2
@@ -30,6 +31,8 @@ jobs:
       # https://stackoverflow.com/questions/56726429/how-to-run-multiple-commands-in-one-github-actions-docker
       run: |
         rm ../docs -Recurse -Force -ErrorAction SilentlyContinue
+        rm ../api -Recurse -Force -ErrorAction SilentlyContinue
+        $env:DOCFX_SOURCE_BRANCH_NAME="${{ github.ref_name }}""
         docfx docfx.json
       continue-on-error: false