From ce2d40b08821dfe716f485b3890e3e95fd515b5d Mon Sep 17 00:00:00 2001 From: Tigger Kindel Date: Fri, 1 Dec 2023 14:05:26 -0700 Subject: [PATCH] attempting to publish v1 AND v2 docs --- .github/workflows/api-docs.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/api-docs.yml b/.github/workflows/api-docs.yml index b0e218d50..ce0bfad80 100644 --- a/.github/workflows/api-docs.yml +++ b/.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/setup-dotnet@v3.0.3 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