Skip to content

Support publish for Blazor example #124

Support publish for Blazor example

Support publish for Blazor example #124

Workflow file for this run

# SPDX-FileCopyrightText: 2021 Frans van Dorsselaer
#
# SPDX-License-Identifier: MIT
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Build
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions: read-all
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
- name: Cache
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/Directory.Packages.props') }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal --collect:"XPlat Code Coverage"
- name: Package
run: dotnet pack --configuration Release --no-build
- name: Upload Package Artifact
uses: actions/upload-artifact@v3
with:
name: nuget-package
path: |
**/*.nupkg
- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1
- name: Documentation Dependencies
run: msbuild Documentation -t:restore
- name: Documentation
run: msbuild Documentation
- name: Upload Documentation Artifact
uses: actions/upload-artifact@v3
with:
name: documentation
path: Documentation/bin