Skip to content

Commit

Permalink
Merge pull request #7 from luboshl/feature/nuget
Browse files Browse the repository at this point in the history
NuGet package publish
  • Loading branch information
luboshl authored Jul 16, 2024
2 parents bc1f202 + fdecf3a commit d6fd9af
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,24 @@ on:
workflow_dispatch:

jobs:
build:
name: Build & Test
uses: ./.github/workflows/_build.yml

push-package:
name: Publish NuGet Package
runs-on: ubuntu-latest
needs: build

steps:
steps:
- name: Download artifacts
uses: actions/download-artifact@v4

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4

- name: Add nuget.org source
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 }}
3 changes: 1 addition & 2 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>

<PropertyGroup>
<VersionPrefix>0.0.1</VersionPrefix>
<VersionPrefix>1.0.0</VersionPrefix>
<!-- VersionSuffix used for local builds -->
<VersionSuffix>dev</VersionSuffix>
<!-- VersionSuffix to be used for CI builds -->
Expand All @@ -10,7 +10,6 @@
<!--<VersionSuffix Condition=" '$(ContinuousIntegrationBuild)' == 'true' And '$(IsShipCandidate)' == 'true' ">pre.$(BuildNumber)</VersionSuffix>-->
<Authors>Lubos Hladik</Authors>
<Copyright>Copyright © Lubos Hladik</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/luboshl/MiniValidationPlus</PackageProjectUrl>
<RepositoryUrl>https://github.com/luboshl/MiniValidationPlus</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down
6 changes: 4 additions & 2 deletions src/MiniValidationPlus/MiniValidationPlus.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>A minimalist validation library built atop the existing validation features in .NET's `System.ComponentModel.DataAnnotations` namespace.</Description>
<Description>A minimalist validation library built atop the existing validation features in .NET's `System.ComponentModel.DataAnnotations` namespace with support of non-nullable reference types.</Description>
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
<PackageTags>ComponentModel DataAnnotations validation</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<LangVersion>10.0</LangVersion>
</PropertyGroup>

Expand All @@ -13,7 +14,8 @@
</ItemGroup>

<ItemGroup>
<None Include="../../README.md" Pack="true" PackagePath="\" />
<None Include="../../LICENSE" Pack="true" PackagePath=""/>
<None Include="../../README.md" Pack="true" PackagePath="" />
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
<PackageReference Include="PolySharp">
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit d6fd9af

Please sign in to comment.