Merge pull request #1720 from shimat/change_linux_nuget_name #196
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DocFX | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Install .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Setup MSBuild.exe | |
uses: microsoft/[email protected] | |
- name: DocFX | |
shell: cmd | |
run: | | |
choco install docfx -y | |
docfx docfx\docfx.json | |
- name: Upload DocFX packages | |
uses: actions/upload-artifact@v3 | |
with: | |
name: docfx_site | |
path: ${{ github.workspace }}\docfx\_site | |
- uses: actions/upload-pages-artifact@v2 | |
with: | |
path: docfx/_site | |
deploy: | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |