From 4206884f65dde7f1cb9142ee7aaa0758a0a0f3ac Mon Sep 17 00:00:00 2001 From: Lubos Hladik Date: Tue, 16 Jul 2024 20:32:16 +0200 Subject: [PATCH 1/4] Fix nuget.yml workflow - add missing job to build project and step to download artifacts --- .github/workflows/nuget.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index f4e2d63..2bab206 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -4,11 +4,18 @@ on: workflow_dispatch: jobs: + build: + name: Build & Test + uses: ./.github/workflows/_build.yml + push-package: name: Publish NuGet Package runs-on: ubuntu-latest - steps: + steps: + - name: Download artifacts + uses: actions/download-artifact@v4 + - name: Setup .NET SDK uses: actions/setup-dotnet@v4 @@ -16,4 +23,4 @@ jobs: run: dotnet nuget add source --name NUGET https://www.nuget.org - name: Push to nuget.org - run: dotnet nuget push **/*.nupkg -s "NUGET" -k ${{ secrets.NUGET_APIKEY }} + run: dotnet nuget push **/*.nupkg -s "NUGET" -k ${{ secrets.NUGET_APIKEY }} \ No newline at end of file From 100bc02b2862258a2f53a2d0cc1da58391b324bd Mon Sep 17 00:00:00 2001 From: Lubos Hladik Date: Tue, 16 Jul 2024 20:37:19 +0200 Subject: [PATCH 2/4] Add job dependency --- .github/workflows/nuget.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index 2bab206..636ea1f 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -11,6 +11,7 @@ jobs: push-package: name: Publish NuGet Package runs-on: ubuntu-latest + needs: build steps: - name: Download artifacts From e00b069c0b55aa54f43a3ef32dfc2d59cbd726aa Mon Sep 17 00:00:00 2001 From: Lubos Hladik Date: Tue, 16 Jul 2024 20:50:04 +0200 Subject: [PATCH 3/4] Add LICENSE to the package metadata --- src/Directory.Build.props | 1 - src/MiniValidationPlus/MiniValidationPlus.csproj | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 8b4329c..84b8788 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -10,7 +10,6 @@ Lubos Hladik Copyright © Lubos Hladik - MIT https://github.com/luboshl/MiniValidationPlus https://github.com/luboshl/MiniValidationPlus git diff --git a/src/MiniValidationPlus/MiniValidationPlus.csproj b/src/MiniValidationPlus/MiniValidationPlus.csproj index 7f2afc4..6e2a233 100644 --- a/src/MiniValidationPlus/MiniValidationPlus.csproj +++ b/src/MiniValidationPlus/MiniValidationPlus.csproj @@ -1,10 +1,11 @@ - A minimalist validation library built atop the existing validation features in .NET's `System.ComponentModel.DataAnnotations` namespace. + A minimalist validation library built atop the existing validation features in .NET's `System.ComponentModel.DataAnnotations` namespace with support of non-nullable reference types. netstandard2.0;net6.0 ComponentModel DataAnnotations validation README.md + LICENSE 10.0 @@ -13,7 +14,8 @@ - + + all From fdecf3a5607fba5d0bd10783c6b3f3c0912e6a42 Mon Sep 17 00:00:00 2001 From: Lubos Hladik Date: Tue, 16 Jul 2024 20:51:26 +0200 Subject: [PATCH 4/4] Bump version to 1.0.0 --- src/Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 84b8788..989d64d 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,7 +1,7 @@ - 0.0.1 + 1.0.0 dev