Skip to content

Commit 7a50f69

Browse files
authored
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.
1 parent 725df9a commit 7a50f69

File tree

3 files changed

+70
-58
lines changed

3 files changed

+70
-58
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@ jobs:
3636
uses: actions/upload-artifact@v4
3737
with:
3838
name: GeoUK-nuget
39-
path: GeoUK/bin/Release/GeoUK.${{ github.event.release.tag_name }}.nupkg
39+
path: GeoUK/bin/Release/IeuanWalker.GeoUK.${{ github.event.release.tag_name }}.nupkg
4040

4141
- name: Upload GeoUK.OSTN NuGet package
4242
uses: actions/upload-artifact@v4
4343
with:
4444
name: GeoUK.OSTN-nuget
45-
path: GeoUK.OSTN/bin/Release/GeoUK.OSTN.${{ github.event.release.tag_name }}.nupkg
45+
path: GeoUK.OSTN/bin/Release/IeuanWalker.GeoUK.OSTN.${{ github.event.release.tag_name }}.nupkg
4646

4747
- name: Setup NuGet
4848
uses: NuGet/[email protected]
4949

5050
- name: Publish GeoUK to NuGet.org
51-
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 }}
51+
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 }}
5252

5353
- name: Publish GeoUK.OSTN to NuGet.org
54-
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 }}
54+
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 }}

GeoUK.OSTN/GeoUK.OSTN.csproj

Lines changed: 42 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,45 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<TargetFramework>netstandard2.0</TargetFramework>
4-
</PropertyGroup>
5-
<ItemGroup>
6-
<None Remove="OSTN02_OSGM02_GB.txt" />
7-
<None Remove="OSTN15_OSGM15_DataFile.txt" />
8-
</ItemGroup>
9-
<ItemGroup>
10-
<EmbeddedResource Include="OSTN02_OSGM02_GB.txt">
11-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
12-
</EmbeddedResource>
13-
<EmbeddedResource Include="OSTN15_OSGM15_DataFile.txt">
14-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
15-
</EmbeddedResource>
16-
</ItemGroup>
17-
<ItemGroup>
18-
<ProjectReference Include="..\GeoUK\GeoUK.csproj" />
19-
</ItemGroup>
20-
<ItemGroup>
21-
<Folder Include="Properties\" />
22-
</ItemGroup>
23-
<PropertyGroup>
24-
<Authors>Ieuan Walker</Authors>
25-
<Company>Ieuan Walker</Company>
26-
<Copyright>Ieuan Walker</Copyright>
27-
<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.
2+
<PropertyGroup>
3+
<TargetFramework>netstandard2.0</TargetFramework>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<None Remove="OSTN02_OSGM02_GB.txt" />
7+
<None Remove="OSTN15_OSGM15_DataFile.txt" />
8+
</ItemGroup>
9+
<ItemGroup>
10+
<EmbeddedResource Include="OSTN02_OSGM02_GB.txt">
11+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
12+
</EmbeddedResource>
13+
<EmbeddedResource Include="OSTN15_OSGM15_DataFile.txt">
14+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
15+
</EmbeddedResource>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ProjectReference Include="..\GeoUK\GeoUK.csproj" />
19+
</ItemGroup>
20+
<ItemGroup>
21+
<Folder Include="Properties\" />
22+
</ItemGroup>
23+
<PropertyGroup>
24+
<Authors>Ieuan Walker</Authors>
25+
<Company>Ieuan Walker</Company>
26+
<Copyright>Ieuan Walker</Copyright>
27+
<Description>
28+
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.
2829

29-
This is a port of the original GeoUK NuGet but converted to .NET Stanadard.</Description>
30-
<PackageProjectUrl>https://github.com/IeuanWalker/GeoUK</PackageProjectUrl>
31-
<PackageIconUrl>https://github.com/IeuanWalker/GeoUK/blob/master/icon.png?raw=true</PackageIconUrl>
32-
<RepositoryUrl>https://github.com/IeuanWalker/GeoUK</RepositoryUrl>
33-
<PackageTags>Geodetic, Geo, WGS84, BNG, OS, coordinate, OSGB36</PackageTags>
34-
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
35-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
36-
<PackageId>IeuanWalker.GeoUK.OSTN</PackageId>
37-
<Version>1.0.5</Version>
38-
</PropertyGroup>
30+
This is a port of the original GeoUK NuGet but converted to .NET Stanadard.
31+
</Description>
32+
<PackageProjectUrl>https://github.com/IeuanWalker/GeoUK</PackageProjectUrl>
33+
<PackageIcon>icon.png</PackageIcon>
34+
<RepositoryUrl>https://github.com/IeuanWalker/GeoUK</RepositoryUrl>
35+
<PackageTags>Geodetic, Geo, WGS84, BNG, OS, coordinate, OSGB36</PackageTags>
36+
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
37+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
38+
<PackageId>IeuanWalker.GeoUK.OSTN</PackageId>
39+
<Version>1.0.5</Version>
40+
</PropertyGroup>
41+
42+
<ItemGroup>
43+
<None Include="..\icon.png" Pack="true" PackagePath="\"/>
44+
</ItemGroup>
3945
</Project>

GeoUK/GeoUK.csproj

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<TargetFramework>netstandard2.0</TargetFramework>
4-
</PropertyGroup>
5-
<PropertyGroup>
6-
<Authors>Ieuan Walker</Authors>
7-
<Company />
8-
<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.
2+
<PropertyGroup>
3+
<TargetFramework>netstandard2.0</TargetFramework>
4+
</PropertyGroup>
5+
<PropertyGroup>
6+
<Authors>Ieuan Walker</Authors>
7+
<Company />
8+
<Description>
9+
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.
910

10-
This is a port of the original GeoUK NuGet but converted to .NET Stanadard.</Description>
11-
<Copyright>Ieuan Walker</Copyright>
12-
<PackageProjectUrl>https://github.com/IeuanWalker/GeoUK</PackageProjectUrl>
13-
<PackageIconUrl>https://github.com/IeuanWalker/GeoUK/blob/master/icon.png?raw=true</PackageIconUrl>
14-
<RepositoryUrl>https://github.com/IeuanWalker/GeoUK</RepositoryUrl>
15-
<PackageTags>Geodetic, Geo, WGS84, BNG, OS, coordinate, OSGB36</PackageTags>
16-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
17-
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
18-
<PackageId>IeuanWalker.GeoUK</PackageId>
19-
<Version>1.0.5</Version>
20-
</PropertyGroup>
11+
This is a port of the original GeoUK NuGet but converted to .NET Stanadard.
12+
</Description>
13+
<Copyright>Ieuan Walker</Copyright>
14+
<PackageProjectUrl>https://github.com/IeuanWalker/GeoUK</PackageProjectUrl>
15+
<PackageIcon>icon.png</PackageIcon>
16+
<RepositoryUrl>https://github.com/IeuanWalker/GeoUK</RepositoryUrl>
17+
<PackageTags>Geodetic, Geo, WGS84, BNG, OS, coordinate, OSGB36</PackageTags>
18+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
19+
<PackageLicenseExpression>LGPL-3.0-only</PackageLicenseExpression>
20+
<PackageId>IeuanWalker.GeoUK</PackageId>
21+
<Version>1.0.5</Version>
22+
</PropertyGroup>
23+
24+
<ItemGroup>
25+
<None Include="..\icon.png" Pack="true" PackagePath="\"/>
26+
</ItemGroup>
2127
</Project>

0 commit comments

Comments
 (0)