Skip to content

Merge branch 'feature/more-code-cleanup' into master #412

Merge branch 'feature/more-code-cleanup' into master

Merge branch 'feature/more-code-cleanup' into master #412

Workflow file for this run

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