mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
44 lines
997 B
YAML
44 lines
997 B
YAML
name: Build and publish v2 API docs
|
|
|
|
on:
|
|
push:
|
|
branches: [v2_release, v2_develop]
|
|
|
|
permissions:
|
|
id-token: write
|
|
pages: write
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Build and Deploy v2 API docs to github-pages ${{ github.ref_name }}
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: DocFX Build
|
|
working-directory: docfx
|
|
run: |
|
|
dotnet tool install -g docfx
|
|
$env:DOCFX_SOURCE_BRANCH_NAME="${{ github.ref_name }}"
|
|
docfx metadata
|
|
docfx build
|
|
continue-on-error: false
|
|
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@v5
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: docfx/_site
|
|
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|