Skip to content

stable release

stable release #179

Workflow file for this run

name: .NET
on:
push:
branches: [ "main", "preview" ]
pull_request:
branches: [ "main", "preview" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x
include-prerelease: true
- name: Restore dependencies
run: dotnet restore ./src/Pure.Blazor.Components
- name: Build
run: dotnet build ./src/Pure.Blazor.Components --no-restore
- name: Test
run: dotnet test ./src/Pure.Blazor.Components --no-build --verbosity normal
- name: Build AspNetCore Integration Package
run: dotnet build ./src/Pure.Blazor.Components.AspNetCore
- name: Publish to NuGet
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/preview' }}
run: dotnet nuget push --skip-duplicate --api-key ${{secrets.PB_COMPONENTS_NUGET_KEY}} --source 'https://api.nuget.org/v3/index.json' ${{github.workspace}}/src/**/PureBlazor.Components.*.nupkg