Skip to content

Commit 5b784b7

Browse files
authored
fix(nuget): licence and readme (#232)
1 parent 25528af commit 5b784b7

File tree

5 files changed

+23
-16
lines changed

5 files changed

+23
-16
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ jobs:
2424
- name: Setup .NET
2525
uses: actions/setup-dotnet@v5
2626
with:
27-
dotnet-version: ${{ matrix.dotnet-version }}
27+
dotnet-version: |
28+
8.x
29+
9.x
30+
10.x
2831
2932
- name: Build projects
3033
shell: bash
@@ -45,7 +48,10 @@ jobs:
4548
- name: Setup .NET
4649
uses: actions/setup-dotnet@v5
4750
with:
48-
dotnet-version: 10
51+
dotnet-version: |
52+
8.x
53+
9.x
54+
10.x
4955
5056
- name: Build benchmarks
5157
shell: bash
@@ -62,7 +68,10 @@ jobs:
6268
- name: Setup .NET
6369
uses: actions/setup-dotnet@v5
6470
with:
65-
dotnet-version: 10
71+
dotnet-version: |
72+
8.x
73+
9.x
74+
10.x
6675
6776
- name: Build samples
6877
shell: bash

.github/workflows/release.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ on:
99
jobs:
1010
release:
1111
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
project: ['.']
1512
steps:
1613
- name: Checkout code
1714
uses: actions/checkout@v6
@@ -26,7 +23,6 @@ jobs:
2623
2724
- name: Build projects
2825
shell: bash
29-
working-directory: ${{ matrix.project }}
3026
run: dotnet build ./all.csproj -c Release
3127

3228
- name: Extract version
@@ -42,7 +38,6 @@ jobs:
4238
4339
- name: Pack
4440
shell: bash
45-
working-directory: ${{ matrix.project }}
4641
run: |
4742
dotnet pack ./all.csproj \
4843
-c Release \
@@ -57,6 +52,5 @@ jobs:
5752
5853
- name: Push
5954
shell: bash
60-
working-directory: ${{ matrix.project }}
6155
run: |
6256
find . -name '*.nupkg' | grep -v '.sources.nupkg' | parallel --jobs 0 'dotnet nuget push {} --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json'

Directory.Build.props

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
<Authors>Swiss Life authors and contributors</Authors>
3434
<Company>Swiss Life</Company>
3535
<Copyright>Copyright © $(Company) $([System.DateTime]::Now.Year)</Copyright>
36-
<PackageLicenseUrl>https://github.com/SwissLife-OSS/Snapshooter/blob/master/LICENSE</PackageLicenseUrl>
36+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
3737
<PackageProjectUrl>https://github.com/SwissLife-OSS/Snapshooter</PackageProjectUrl>
3838
<PackageReleaseNotes>Release notes: https://github.com/SwissLife-OSS/Snapshooter/releases/$(Version)</PackageReleaseNotes>
3939
<PackageTags>XUnit SwissLife Snapshot UnitTest Test IntegrationTest SystemTest DatabaseTest .Net</PackageTags>
40-
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
41-
<PackageIconUrl>https://github.com/SwissLife-OSS/snapshooter/raw/master/logo.png</PackageIconUrl>
40+
<PackageIcon>logo.png</PackageIcon>
41+
<PackageReadmeFile>README.md</PackageReadmeFile>
4242
<RepositoryType>GIT</RepositoryType>
4343
</PropertyGroup>
4444

@@ -53,7 +53,13 @@
5353
</PropertyGroup>
5454

5555
<ItemGroup>
56-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
56+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.102" PrivateAssets="All" />
57+
<None Include="$(MSBuildThisFileDirectory)logo.png"
58+
Pack="true"
59+
PackagePath="\" />
60+
<None Include="$(MSBuildThisFileDirectory)README.md"
61+
Pack="true"
62+
PackagePath="\" />
5763
</ItemGroup>
5864

5965
</Project>

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "10.0.100"
3+
"version": "10.0.103"
44
}
55
}

sonar-project.properties

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)