File tree 4 files changed +18
-14
lines changed
4 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -33,23 +33,19 @@ jobs:
33
33
with :
34
34
dotnet-version : 8.0.100
35
35
36
- - name : .NET Core SxS
37
- run : |
38
- rsync -a ${DOTNET_ROOT/8.0.100/7.0.403/6.0.416}/* $DOTNET_ROOT/
39
-
40
36
- name : Restore
41
37
run : dotnet restore LuhnDotNet.sln
42
38
43
39
- name : Build
44
- run : dotnet build --configuration Release LuhnDotNet.sln
40
+ run : dotnet build --configuration Release --no-restore LuhnDotNet.sln
45
41
46
42
- name : Test
47
- run : dotnet test --configuration Release LuhnDotNet.sln
43
+ run : dotnet test --no-restore --no-build -- configuration Release LuhnDotNet.sln
48
44
49
45
- name : Prepare README.md for NuGet package
50
46
run : |
51
47
grep -n "## Install LuhnDotNet package" README.md | cut -d: -f 1| xargs -i tail -n +{} README.md > TMP.md && sed -i '1s/^/# Setup\r\n/' TMP.md && mv -f TMP.md README.md
52
48
grep -n "# CLI building instructions" README.md | cut -d: -f 1| xargs -i head -n {} README.md | head -n -1 > TMP.md && mv -f TMP.md README.md
53
49
54
50
- name : Create Package
55
- run : dotnet pack --configuration Release LuhnDotNet.sln
51
+ run : dotnet pack --no-restore --no-build -- configuration Release LuhnDotNet.sln
Original file line number Diff line number Diff line change 31
31
with :
32
32
dotnet-version : 8.0.100
33
33
34
- - name : .NET Core SxS
35
- run : |
36
- rsync -a ${DOTNET_ROOT/8.0.100/7.0.403/6.0.416}/* $DOTNET_ROOT/
37
-
38
34
- name : Decrypt large secret
39
35
run : ./.github/secrets/decrypt_publisher_snk.sh
40
36
env :
@@ -45,10 +41,10 @@ jobs:
45
41
run : dotnet restore LuhnDotNet.sln
46
42
47
43
- name : Build
48
- run : dotnet build --configuration Release LuhnDotNet.sln
44
+ run : dotnet build --no-restore -- configuration Release LuhnDotNet.sln
49
45
50
46
- name : Test
51
- run : dotnet test --configuration Release LuhnDotNet.sln
47
+ run : dotnet test --no-restore --no-build -- configuration Release LuhnDotNet.sln
52
48
53
49
- name : Remove obsolete NuGet packages
54
50
run : rm -f src/bin/Release/LuhnDotNet*.nupk
59
55
grep -n "# CLI building instructions" README.md | cut -d: -f 1| xargs -i head -n {} README.md | head -n -1 > TMP.md && mv -f TMP.md README.md
60
56
61
57
- name : Create package
62
- run : dotnet pack --configuration Release LuhnDotNet.sln
58
+ run : dotnet pack --no-restore --no-build -- configuration Release LuhnDotNet.sln
63
59
64
60
- name : Publish package
65
61
run : dotnet nuget push $(find src/bin/Release -type f -name 'LuhnDotNet*.nupkg' -print 2> /dev/null) -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
## [ Unreleased]
8
8
### Added
9
9
- Added .NET 8 support
10
+ - Added support for SourceLink (GitHub)
11
+ - Enable deterministic builds
10
12
11
13
### Changed
12
14
- Changed parameter type of ` Luhn.IsValid ` , ` Luhn.ComputeLuhnNumber ` and ` Luhn.ComputeCheckDigit ` methods from ` string ` to ` ReadOnlySpan<char> ` .
Original file line number Diff line number Diff line change 20
20
<Authors >Sebastian Walther</Authors >
21
21
<Company >Private Person</Company >
22
22
<GenerateDocumentationFile >true</GenerateDocumentationFile >
23
+ <PublishRepositoryUrl >true</PublishRepositoryUrl >
24
+ <IncludeSymbols >true</IncludeSymbols >
25
+ <SymbolPackageFormat >snupkg</SymbolPackageFormat >
26
+ <EmbedUntrackedSources >true</EmbedUntrackedSources >
27
+ <Deterministic >true</Deterministic >
28
+ </PropertyGroup >
29
+
30
+ <PropertyGroup Condition =" '$(GITHUB_ACTIONS)' == 'true'" >
31
+ <ContinuousIntegrationBuild >true</ContinuousIntegrationBuild >
23
32
</PropertyGroup >
24
33
25
34
<ItemGroup >
31
40
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
32
41
<PrivateAssets >all</PrivateAssets >
33
42
</PackageReference >
43
+ <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 8.0.0" PrivateAssets =" All" />
34
44
</ItemGroup >
35
45
36
46
</Project >
You can’t perform that action at this time.
0 commit comments