* Improve parameter padding and add discord link. * Update xref service for docs. Reason: https://github.com/dotnet/docfx/issues/9659 * Update docs readme to specify docfx version. * Update to latest DocFX. * update action & add manual trigger
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Deploy Docs
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Setup DocFX
|
|
run: dotnet tool install -g docfx --version 2.75.2
|
|
|
|
- name: Build DNet docs
|
|
run: docfx docs/docfx.json
|
|
|
|
- name: Create Output Directory
|
|
run: mkdir output | cp -a docs/_site/. output/
|
|
|
|
- name: Auth DNet bot
|
|
id: bot_auth
|
|
uses: machine-learning-apps/actions-app-token@master
|
|
with:
|
|
APP_PEM: ${{ secrets.DNET_BOT_PEM }}
|
|
APP_ID: ${{ secrets.DNET_BOT_ID }}
|
|
|
|
- name: Push to static docs
|
|
uses: cpina/github-action-push-to-another-repository@main
|
|
env:
|
|
API_TOKEN_GITHUB: ${{ steps.bot_auth.outputs.app_token }}
|
|
with:
|
|
source-directory: 'output'
|
|
destination-github-username: 'discord-net'
|
|
destination-repository-name: 'docs-static'
|
|
user-email: dnetbot@discordnet.dev
|
|
target-branch: master
|