Skip to content

Commit c26f343

Browse files
committed
Versioning
1 parent 21af705 commit c26f343

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

.github/workflows/dotnet.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- name: Get version from git tag
23+
id: version
24+
run: |
25+
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.1-preview")
26+
VERSION=${VERSION#v}
27+
echo "version=$VERSION" >> $GITHUB_OUTPUT
2028
- name: Setup .NET
2129
uses: actions/setup-dotnet@v4
2230
with:
@@ -28,7 +36,7 @@ jobs:
2836
- name: Test
2937
run: dotnet test src/CSharp/Rsk.AuthZen.sln --no-build --verbosity normal --configuration Release
3038
- name: Pack NuGet Package
31-
run: dotnet pack src/CSharp/Rsk.AuthZen.Client/Rsk.AuthZen.Client.csproj --configuration Release --no-build --output ./nupkgs
39+
run: dotnet pack src/CSharp/Rsk.AuthZen.Client/Rsk.AuthZen.Client.csproj --configuration Release --no-build --output ./nupkgs -p:Version=${{ steps.version.outputs.version }}
3240
- name: Upload NuGet Package
3341
uses: actions/upload-artifact@v4
3442
with:

icon.png

5.89 KB
Loading

src/CSharp/Rsk.AuthZen.Client/Rsk.AuthZen.Client.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<Copyright>Copyright 2026 (c) Rock Solid Knowledge Ltd. All rights reserved.</Copyright>
1313
<PackageTags>AuthZen</PackageTags>
1414
<IncludeSymbols>true</IncludeSymbols>
15+
<IncludeContentInPack>true</IncludeContentInPack>
1516
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1617
<PackageLicenseFile>license.txt</PackageLicenseFile>
1718
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
@@ -24,8 +25,8 @@
2425
</ItemGroup>
2526

2627
<ItemGroup>
27-
<None Remove="licence.txt" />
28-
<Content Include="licence.txt" />
28+
<None Include="license.txt" Pack="true" PackagePath="license.txt" />
29+
<None Include="../../../icon.png" Pack="true" PackagePath="" />
2930
</ItemGroup>
3031

3132
</Project>

0 commit comments

Comments
 (0)