Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish to NuGet
on:
push:
tags:
- 'v*'

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x

- name: Extract version from tag
id: version
run: echo "package_version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT

- name: Restore dependencies
run: dotnet restore src/CSharpHelperExtensions.slnx

- name: Build
run: dotnet build src/CSharpHelperExtensions.slnx --no-restore --configuration Release

- name: Pack
run: dotnet pack src/CSharpHelperExtensions/CSharpHelperExtensions.csproj --no-build --configuration Release --output ./nupkg /p:Version=${{ steps.version.outputs.package_version }}

- name: Push to NuGet.org
run: dotnet nuget push ./nupkg/CSharpHelperExtensions.${{ steps.version.outputs.package_version }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
25 changes: 25 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<Project>

<PropertyGroup>
<PackageId Condition="'$(MSBuildProjectName)' == 'CSharpHelperExtensions'">CSharpHelperExtensions</PackageId>
<Version>2.0.0</Version>
<PackageVersion>2.0.0</PackageVersion>
<Authors>Bipin Radhakrishnan</Authors>
<Description>A set of helper extension methods that are used very often when coding</Description>
<PackageTags>extensions;helpers;enumerable;string;utilities;csharp</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/rbipin/dry-extensions-csharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/rbipin/dry-extensions-csharp</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>logo-nuget.png</PackageIcon>
<PackageReleaseNotes></PackageReleaseNotes>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\" />
<None Include="$(MSBuildThisFileDirectory)assets\logo-nuget.png" Pack="true" PackagePath="\" />
</ItemGroup>

</Project>
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Bipin Radhakrishnan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Binary file added assets/logo-nuget.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/logo.svg
Binary file not shown.
10 changes: 1 addition & 9 deletions src/CSharpHelperExtensions/CSharpHelperExtensions.csproj
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PackageId>CSharpHelperExtensions</PackageId>
<Version>2.0.0</Version>
<Authors>Bipin Radhakrishnan</Authors>
<TargetFramework>net10.0</TargetFramework>
<PackageVersion>2.0.0</PackageVersion>
<Description>A set of helper extension methods that are used very often when coding</Description>
<RepositoryUrl>https://github.com/rbipin/dry-extensions-csharp</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageReleaseNotes></PackageReleaseNotes>
<AssemblyName>CSharpHelperExtensions</AssemblyName>
<RootNamespace>CSharpHelperExtensions</RootNamespace>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

</Project>
Loading