docs: use docfx to generate documentation
This commit is contained in:
@@ -77,4 +77,22 @@ jobs:
|
||||
token: ${{ secrets.ACTIONS_PAT }}
|
||||
name: AnthropicClient v${{ steps.get-version.outputs.version }}
|
||||
tag_name: v${{ steps.get-version.outputs.version }}
|
||||
body_path: src/AnthropicClient/CHANGELOG.md
|
||||
body_path: src/AnthropicClient/CHANGELOG.md
|
||||
- name: Install Docfx
|
||||
run: dotnet tool install --global docfx
|
||||
- name: Build documentation
|
||||
run: |
|
||||
cp README.md docfx/index.md
|
||||
docfx build docfx/docfx.json
|
||||
- name: Commit documentation
|
||||
run: |
|
||||
git config --local user.email "65925598+StevanFreeborn@users.noreply.github.com"
|
||||
git config --local user.name "Stevan Freeborn"
|
||||
git add docfx/_site
|
||||
git commit -m "docs: documentation for v${{ steps.get-version.outputs.version }} [skip ci]"
|
||||
- name: Push documentation
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.ACTIONS_PAT }}
|
||||
branch: ${{ github.ref }}
|
||||
tags: true
|
||||
Reference in New Issue
Block a user