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