Update Dependencies (#317) #133
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: Publish GH - Pages | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.0.x' | |
# Include recommended wasm-tools workload to optimize build | |
- name: wasm-tools | |
run: dotnet workload install wasm-tools | |
- name: Build | |
run: dotnet publish OAT.Blazor -c Release -f net8.0 -o blazorOut | |
- name: Mkdir toPublish | |
run: mkdir toPublish | |
- name: Move Blazor Output into Place | |
run: mv blazorOut/wwwroot toPublish/Blazor | |
- name: Update gitattributes | |
run: mv toPublish/Blazor/gitattributes toPublish/Blazor/.gitattributes | |
- name: Install chocolatey | |
run: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
- name: Install docfx | |
run: choco install docfx | |
- name: Run DocFx | |
run: docfx docfx/docfx.json | |
- name: Move DocFx Output Into Place | |
run: mv docfx/_site/* toPublish/ | |
- name: GitHub Pages action | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: toPublish |