Skip to content

Commit 48426cd

Browse files
Merge pull request #33 from ipdata/claude/migrate-ipdata-references-TUE1b
Claude/migrate ipdata references tue1b
2 parents 25fe4b9 + afc6ebd commit 48426cd

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@ jobs:
1919
- name: Restore dependencies
2020
run: dotnet restore
2121

22+
- name: Get version from tag
23+
id: version
24+
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
25+
2226
- name: Build
23-
run: dotnet build --configuration Release --no-restore
27+
run: dotnet build --configuration Release --no-restore /p:Version=${{ steps.version.outputs.VERSION }}
2428

2529
- name: Test
2630
run: dotnet test --configuration Release --no-build --verbosity normal
2731

2832
- name: Pack
29-
run: dotnet pack src/IPData/IPData.csproj --configuration Release --no-build --output ./nupkg
33+
run: dotnet pack src/IPData/IPData.csproj --configuration Release --no-build --output ./nupkg /p:Version=${{ steps.version.outputs.VERSION }}
3034

3135
- name: Publish to NuGet
3236
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

src/IPData/IPData.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
<SignAssembly>false</SignAssembly>
2121
<DelaySign>false</DelaySign>
2222
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
23-
<Version>3.0.0</Version>
24-
<AssemblyVersion>3.0.0.0</AssemblyVersion>
23+
<VersionPrefix>3.0.1</VersionPrefix>
2524
</PropertyGroup>
2625

2726
<ItemGroup>

src/IPData/IPData.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
33
<metadata>
44
<id>IPData</id>
5-
<version>3.0.0</version>
5+
<version>$version$</version>
66
<authors>IPData Contributors</authors>
77
<owners>IPData Contributors</owners>
88
<requireLicenseAcceptance>false</requireLicenseAcceptance>

0 commit comments

Comments
 (0)