Skip to content

CD

CD #9

Workflow file for this run

name: CD
on:
workflow_dispatch:
branches: [ main ]
jobs:
publish:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .Net
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Publish NuGet
shell: bash
run: |
dotnet tool install --global dotnet-releaser
dotnet-releaser run --nuget-token "${{secrets.NUGET_TOKEN}}" --github-token "${{secrets.GITHUB_TOKEN}}" dotnet-releaser.toml
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .Net
uses: actions/setup-dotnet@v4
- name: Setup DocFx
run: dotnet tool update -g docfx
- name: Run DocFx
run: docfx docs/docfx.json
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site