Release.yml fixes (#49)

* Update project files for packaging enhancements

Added icon file for packaging and updated project metadata.
Replaced `<PackageIconUrl>` with `<PackageIcon>` for local reference.
Modified `<Description>` and restored `<Copyright>` in `GeoUK.csproj`.

* Update NuGet package paths in release.yml

Added "IeuanWalker." prefix to GeoUK and GeoUK.OSTN
packages in upload and publish paths. This ensures
correct referencing of new package names during the
release process.
This commit is contained in:
Ieuan Walker
2025-07-11 13:10:53 +01:00
committed by GitHub
parent 725df9ad9e
commit 7a50f69977
3 changed files with 70 additions and 58 deletions

View File

@@ -36,19 +36,19 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: GeoUK-nuget
path: GeoUK/bin/Release/GeoUK.${{ github.event.release.tag_name }}.nupkg
path: GeoUK/bin/Release/IeuanWalker.GeoUK.${{ github.event.release.tag_name }}.nupkg
- name: Upload GeoUK.OSTN NuGet package
uses: actions/upload-artifact@v4
with:
name: GeoUK.OSTN-nuget
path: GeoUK.OSTN/bin/Release/GeoUK.OSTN.${{ github.event.release.tag_name }}.nupkg
path: GeoUK.OSTN/bin/Release/IeuanWalker.GeoUK.OSTN.${{ github.event.release.tag_name }}.nupkg
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.1.1
- name: Publish GeoUK to NuGet.org
run: dotnet nuget push GeoUK/bin/Release/GeoUK.${{ github.event.release.tag_name }}.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push GeoUK/bin/Release/IeuanWalker.GeoUK.${{ github.event.release.tag_name }}.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{ secrets.NUGET_API_KEY }}
- name: Publish GeoUK.OSTN to NuGet.org
run: dotnet nuget push GeoUK.OSTN/bin/Release/GeoUK.OSTN.${{ github.event.release.tag_name }}.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push GeoUK.OSTN/bin/Release/IeuanWalker.GeoUK.OSTN.${{ github.event.release.tag_name }}.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{ secrets.NUGET_API_KEY }}

View File

@@ -1,39 +1,45 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<None Remove="OSTN02_OSGM02_GB.txt" />
<None Remove="OSTN15_OSGM15_DataFile.txt" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="OSTN02_OSGM02_GB.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="OSTN15_OSGM15_DataFile.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GeoUK\GeoUK.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<PropertyGroup>
<Authors>Ieuan Walker</Authors>
<Company>Ieuan Walker</Company>
<Copyright>Ieuan Walker</Copyright>
<Description>This is a simple to use Geodetic Library for .Net that will allow simple transformation to and from British National Grid. See the project page for details on how to use this package.
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<None Remove="OSTN02_OSGM02_GB.txt" />
<None Remove="OSTN15_OSGM15_DataFile.txt" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="OSTN02_OSGM02_GB.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="OSTN15_OSGM15_DataFile.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GeoUK\GeoUK.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<PropertyGroup>
<Authors>Ieuan Walker</Authors>
<Company>Ieuan Walker</Company>
<Copyright>Ieuan Walker</Copyright>
<Description>
This is a simple to use Geodetic Library for .Net that will allow simple transformation to and from British National Grid. See the project page for details on how to use this package.
This is a port of the original GeoUK NuGet but converted to .NET Stanadard.</Description>
<PackageProjectUrl>https://github.com/IeuanWalker/GeoUK</PackageProjectUrl>
<PackageIconUrl>https://github.com/IeuanWalker/GeoUK/blob/master/icon.png?raw=true</PackageIconUrl>
<RepositoryUrl>https://github.com/IeuanWalker/GeoUK</RepositoryUrl>
<PackageTags>Geodetic, Geo, WGS84, BNG, OS, coordinate, OSGB36</PackageTags>
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>IeuanWalker.GeoUK.OSTN</PackageId>
<Version>1.0.5</Version>
</PropertyGroup>
This is a port of the original GeoUK NuGet but converted to .NET Stanadard.
</Description>
<PackageProjectUrl>https://github.com/IeuanWalker/GeoUK</PackageProjectUrl>
<PackageIcon>icon.png</PackageIcon>
<RepositoryUrl>https://github.com/IeuanWalker/GeoUK</RepositoryUrl>
<PackageTags>Geodetic, Geo, WGS84, BNG, OS, coordinate, OSGB36</PackageTags>
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>IeuanWalker.GeoUK.OSTN</PackageId>
<Version>1.0.5</Version>
</PropertyGroup>
<ItemGroup>
<None Include="..\icon.png" Pack="true" PackagePath="\"/>
</ItemGroup>
</Project>

View File

@@ -1,21 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<Authors>Ieuan Walker</Authors>
<Company />
<Description>This is a simple to use Geodetic Library for .Net that will allow simple transformation to and from British National Grid. See the project page for details on how to use this package.
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<Authors>Ieuan Walker</Authors>
<Company />
<Description>
This is a simple to use Geodetic Library for .Net that will allow simple transformation to and from British National Grid. See the project page for details on how to use this package.
This is a port of the original GeoUK NuGet but converted to .NET Stanadard.</Description>
<Copyright>Ieuan Walker</Copyright>
<PackageProjectUrl>https://github.com/IeuanWalker/GeoUK</PackageProjectUrl>
<PackageIconUrl>https://github.com/IeuanWalker/GeoUK/blob/master/icon.png?raw=true</PackageIconUrl>
<RepositoryUrl>https://github.com/IeuanWalker/GeoUK</RepositoryUrl>
<PackageTags>Geodetic, Geo, WGS84, BNG, OS, coordinate, OSGB36</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
<PackageId>IeuanWalker.GeoUK</PackageId>
<Version>1.0.5</Version>
</PropertyGroup>
This is a port of the original GeoUK NuGet but converted to .NET Stanadard.
</Description>
<Copyright>Ieuan Walker</Copyright>
<PackageProjectUrl>https://github.com/IeuanWalker/GeoUK</PackageProjectUrl>
<PackageIcon>icon.png</PackageIcon>
<RepositoryUrl>https://github.com/IeuanWalker/GeoUK</RepositoryUrl>
<PackageTags>Geodetic, Geo, WGS84, BNG, OS, coordinate, OSGB36</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
<PackageId>IeuanWalker.GeoUK</PackageId>
<Version>1.0.5</Version>
</PropertyGroup>
<ItemGroup>
<None Include="..\icon.png" Pack="true" PackagePath="\"/>
</ItemGroup>
</Project>