mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
attempting to publish v1 AND v2 docs
This commit is contained in:
9
.github/workflows/api-docs.yml
vendored
9
.github/workflows/api-docs.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user