diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/nuget-publish.yml new file mode 100644 index 0000000..c810aa1 --- /dev/null +++ b/.github/workflows/nuget-publish.yml @@ -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 diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..20ae330 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,25 @@ + + + + CSharpHelperExtensions + 2.0.0 + 2.0.0 + Bipin Radhakrishnan + A set of helper extension methods that are used very often when coding + extensions;helpers;enumerable;string;utilities;csharp + MIT + https://github.com/rbipin/dry-extensions-csharp + https://github.com/rbipin/dry-extensions-csharp + git + README.md + logo-nuget.png + + true + + + + + + + + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ed22cf0 --- /dev/null +++ b/LICENSE @@ -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. diff --git a/assets/logo-nuget.png b/assets/logo-nuget.png new file mode 100644 index 0000000..36e81e9 Binary files /dev/null and b/assets/logo-nuget.png differ diff --git a/assets/logo.svg b/assets/logo.svg deleted file mode 100644 index 6281f28..0000000 Binary files a/assets/logo.svg and /dev/null differ diff --git a/src/CSharpHelperExtensions/CSharpHelperExtensions.csproj b/src/CSharpHelperExtensions/CSharpHelperExtensions.csproj index dbaa6ff..80faf33 100644 --- a/src/CSharpHelperExtensions/CSharpHelperExtensions.csproj +++ b/src/CSharpHelperExtensions/CSharpHelperExtensions.csproj @@ -1,22 +1,14 @@ - CSharpHelperExtensions - 2.0.0 - Bipin Radhakrishnan net10.0 - 2.0.0 - A set of helper extension methods that are used very often when coding - https://github.com/rbipin/dry-extensions-csharp - git - CSharpHelperExtensions CSharpHelperExtensions latest - +