diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index dfdf072..0cd8748 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,33 +1,32 @@
- name: Build
+name: .NET
- on:
- push:
- branches: [ main ]
- pull_request:
- branches: [ main ]
+on:
+ push:
+ branches: [ "main" ]
+
+ pull_request:
+ branches: [ "main" ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
- jobs:
- build-ci:
- runs-on: macos-latest
- name: Mac Build
- steps:
- - name: Checkout
- uses: actions/checkout@v2
-
- - name: Install .NET 6.0.300-preview.22204.3
- run: |
- curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --quality preview
- dotnet --version
-
- - uses: actions/setup-node@v3
- with:
- node-version: 16
-
- - name: Restore Dependencies
- run: dotnet restore src/Makani/Makani.csproj
-
- - name: Build Makani
- run: dotnet build src/Makani/Makani.csproj -c Release
-
- - name: Run unit tests
- run: dotnet test ./src/Makani.Tests --collect:"XPlat Code Coverage" --settings coverlet.runsettings
+ steps:
+ - uses: actions/checkout@v4
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: 8.0.x
+ - 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: Publish to NuGet
+ if: ${{ github.ref == 'refs/heads/main' }}
+ 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
diff --git a/README.md b/README.md
index aca4134..30a4ad6 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
-[![last commit](https://img.shields.io/github/last-commit/pureblazor/components?style=flat-square)](https://github.com/pureblazor/components/commits/main)
-[![Discord](https://img.shields.io/discord/984241021225414787?style=flat-square)](https://discord.gg/PeBbYy6WKq)
+![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/pureblazor/components/build.yml)
+![GitHub last commit](https://img.shields.io/github/last-commit/pureblazor/components)
+[![Discord](https://img.shields.io/discord/984241021225414787)](https://discord.gg/PeBbYy6WKq)
+[![PureBlazor](https://img.shields.io/badge/pureblazor-rgb(7%2C%2072%2C%20115))](https://pureblazor.com)
# PureBlazor Components
PureBlazor Components built for the [PureBlazor CMS](https://pureblazor.com)
diff --git a/src/Pure.Blazor.Components/Forms/PureInput.razor b/src/Pure.Blazor.Components/Forms/PureInput.razor
index f3c0c17..ac8010c 100644
--- a/src/Pure.Blazor.Components/Forms/PureInput.razor
+++ b/src/Pure.Blazor.Components/Forms/PureInput.razor
@@ -48,7 +48,7 @@
}
else if (!string.IsNullOrWhiteSpace(errorMessage))
{
- @errorMessage
+ @errorMessage
}
diff --git a/src/Pure.Blazor.Components/Pure.Blazor.Components.csproj b/src/Pure.Blazor.Components/Pure.Blazor.Components.csproj
index fe1e622..c8b2acc 100644
--- a/src/Pure.Blazor.Components/Pure.Blazor.Components.csproj
+++ b/src/Pure.Blazor.Components/Pure.Blazor.Components.csproj
@@ -7,19 +7,20 @@