Skip to content

Commit 3328975

Browse files
authored
Merge pull request #8 from CodeRanger-com/licence
Licence
2 parents dd4d781 + 0dc5ac9 commit 3328975

File tree

4 files changed

+47
-4
lines changed

4 files changed

+47
-4
lines changed

.github/workflows/build-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ jobs:
6262
run: |
6363
dotnet build --configuration Release
6464
65-
- name: Publish to GitHub
65+
- name: Publish to GitHub and Nuget
6666
run: |
6767
dotnet nuget add source --username danpetitt --password ${{ secrets.CI_ACTIONS }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/CodeRanger-com/index.json"
6868
dotnet nuget push "./bin/Release/Coderanger.ImageInfo.${{ steps.gitversion.outputs.SemVer }}.nupkg" --api-key ${{ secrets.CI_ACTIONS }} --source "github"
69+
dotnet nuget push "./bin/Release/Coderanger.ImageInfo.${{ steps.gitversion.outputs.SemVer }}.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source "https://api.nuget.org/v3/index.json"
6970
7071
- name: Produce Changelog and Commit Files
7172
uses: danpetitt/[email protected]

Coderanger.ImageInfo.csproj

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,31 @@
1111
<GenerateDocumentationFile>True</GenerateDocumentationFile>
1212
<DocumentationFile></DocumentationFile>
1313
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
14+
<Title>Cross platform image info library</Title>
1415
<Summary>Cross platform image info library</Summary>
1516
<Description>Cross platform library for inspecting information and metadata from common image files</Description>
16-
<Copyright>Copyright (c) CodeRanger. All rights reserved.</Copyright>
17+
<Copyright>Copyright (c) CodeRanger.com. All rights reserved.</Copyright>
1718
<PackageReadmeFile>README.md</PackageReadmeFile>
18-
<PackageProjectUrl>https://www.coderanger.com/api/Coderanger.ImageInfo/</PackageProjectUrl>
19+
<PackageProjectUrl>https://github.com/CodeRanger-com/Coderanger.ImageInfo/</PackageProjectUrl>
1920
<RepositoryType>git</RepositoryType>
2021
<RepositoryUrl>https://github.com/CodeRanger-com/Coderanger.ImageInfo/</RepositoryUrl>
2122
<Language>en-GB</Language>
22-
<PackageTags>webp;png;jpeg;jpg;gif;bmp;metadata;exif;iptc;xmp;image;images;graphics;gfx</PackageTags>
23+
<PackageTags>webp;png;jpeg;jpg;gif;bmp;metadata;exif;iptc;xmp;image;images;graphics;gfx;decoder</PackageTags>
2324
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
2425
<EnableNETAnalyzers>True</EnableNETAnalyzers>
2526
<AnalysisLevel>latest</AnalysisLevel>
27+
<PackageLicenseFile>LICENCE.txt</PackageLicenseFile>
28+
<Authors>CodeRanger.com and contributors</Authors>
29+
</PropertyGroup>
30+
31+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
32+
<WarningLevel>5</WarningLevel>
33+
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
34+
</PropertyGroup>
35+
36+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
37+
<WarningLevel>5</WarningLevel>
38+
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
2639
</PropertyGroup>
2740

2841
<ItemGroup>
@@ -40,6 +53,10 @@
4053
<Pack>True</Pack>
4154
<PackagePath>\</PackagePath>
4255
</None>
56+
<None Update="LICENCE.txt">
57+
<Pack>True</Pack>
58+
<PackagePath>\</PackagePath>
59+
</None>
4360
</ItemGroup>
4461

4562
<ItemGroup>

LICENCE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 CodeRanger.com and Dan Petitt.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,7 @@ if( imageInfo is not null )
7272
Contributions are welcome; even if it is just additional test images for subtypes of an image format so that the test suite can be increased.
7373

7474
Find out more on our [how to contribute](CONTRIBUTIONS.md).
75+
76+
## Licence
77+
78+
Coderanger.ImageInfo is licensed under the [MIT Licence](LICENCE.TXT).

0 commit comments

Comments
 (0)