Skip to content

Bump actions/setup-dotnet from 4.0.0 to 4.0.1 #34

Bump actions/setup-dotnet from 4.0.0 to 4.0.1

Bump actions/setup-dotnet from 4.0.0 to 4.0.1 #34

Workflow file for this run

name: DocFX Build and Publish
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
generate-docs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: 6.0.x
include-prerelease: true
- name: Setup DocFX
uses: crazy-max/ghaction-chocolatey@v3
with:
args: install docfx
- name: Install dependencies
run: dotnet restore
- name: DocFX Build
working-directory: docfx_project
run: docfx docfx.json
continue-on-error: false
- name: Publish
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docfx_project/_site
force_orphan: true