Merge branch 'feature/more-code-cleanup' into master #412
Workflow file for this run
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: Build Website | |
env: | |
PUBLISH_DIR: website/Samples/ | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
jobs: | |
build-and-publish-website: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# .Net 8 update | |
- name: Setup .NET 8 SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
8.0.x | |
include-prerelease: true | |
- name: install wasm-tools | |
run: dotnet workload install wasm-tools | |
- name: Run DocFx | |
# Use a .cmd so this script can be run locally for testing | |
run: docfx\build-site.cmd | |
# build blazor samples to website/samples/ | |
- name: Build Blazor Website Sample | |
shell: pwsh | |
run: | | |
./Scripts/BuildSamplesWebsite.ps1 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
# Upload the 'website' folder as artifact | |
path: 'website' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |