mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 07:47:54 +01:00
Fixed gitversion
This commit is contained in:
12
.github/workflows/api-docs.yml
vendored
12
.github/workflows/api-docs.yml
vendored
@@ -2,7 +2,7 @@ name: Build and publish API docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, v2_develop]
|
||||
branches: [v1_release, v2_develop]
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
@@ -17,11 +17,11 @@ jobs:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
if: github.ref_name == 'main' || github.ref_name == 'develop'
|
||||
if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop'
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: DocFX Build
|
||||
if: github.ref_name == 'main' || github.ref_name == 'develop'
|
||||
if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop'
|
||||
working-directory: docfx
|
||||
run: |
|
||||
dotnet tool install -g docfx
|
||||
@@ -31,17 +31,17 @@ jobs:
|
||||
continue-on-error: false
|
||||
|
||||
- name: Setup Pages
|
||||
if: github.ref_name == 'main' || github.ref_name == 'develop'
|
||||
if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop'
|
||||
uses: actions/configure-pages@v4
|
||||
|
||||
- name: Upload artifact
|
||||
if: github.ref_name == 'main' || github.ref_name == 'develop'
|
||||
if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop'
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: docfx/_site
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
if: github.ref_name == 'main' || github.ref_name == 'develop'
|
||||
if: github.ref_name == 'v1_release' || github.ref_name == 'v1_develop'
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user