@@ -30,47 +30,54 @@ jobs:
3030 9.0.x
3131 10.0.x
3232
33- - name : Restore dependencies
34- run : |
35- dotnet restore src/AutoSettingUI.Core/AutoSettingUI.Core.csproj
36- dotnet restore src/AutoSettingUI.Generator/AutoSettingUI.Generator.csproj
37- dotnet restore src/Extensions/AutoSettingUI.Extension.Shared/AutoSettingUI.Extension.Shared.csproj
38- dotnet restore src/Extensions/AutoSettingUI.Avalonia/AutoSettingUI.Avalonia.csproj
39- dotnet restore src/Extensions/AutoSettingUI.Ursa/AutoSettingUI.Ursa.csproj
40- dotnet restore src/Extensions/AutoSettingUI.WPF/AutoSettingUI.WPF.csproj
41- dotnet restore src/AutoSettingUI.Generator.Tests/AutoSettingUI.Generator.Tests.csproj
42-
43- - name : Build
44- run : |
45- dotnet build src/AutoSettingUI.Core/AutoSettingUI.Core.csproj --configuration Release --no-restore -p:ContinuousIntegrationBuild=true
46- dotnet build src/AutoSettingUI.Generator/AutoSettingUI.Generator.csproj --configuration Release --no-restore -p:ContinuousIntegrationBuild=true
47- dotnet build src/Extensions/AutoSettingUI.Extension.Shared/AutoSettingUI.Extension.Shared.csproj --configuration Release --no-restore -p:ContinuousIntegrationBuild=true
48- dotnet build src/Extensions/AutoSettingUI.Avalonia/AutoSettingUI.Avalonia.csproj --configuration Release --no-restore -p:ContinuousIntegrationBuild=true
49- dotnet build src/Extensions/AutoSettingUI.Ursa/AutoSettingUI.Ursa.csproj --configuration Release --no-restore -p:ContinuousIntegrationBuild=true
50- dotnet build src/Extensions/AutoSettingUI.WPF/AutoSettingUI.WPF.csproj --configuration Release --no-restore -p:ContinuousIntegrationBuild=true
51- dotnet build src/AutoSettingUI.Generator.Tests/AutoSettingUI.Generator.Tests.csproj --configuration Release --no-restore -p:ContinuousIntegrationBuild=true
33+ - name : Build Core
34+ run : dotnet build src/AutoSettingUI.Core/AutoSettingUI.Core.csproj --configuration Release -p:ContinuousIntegrationBuild=true
35+
36+ - name : Build Generator
37+ run : dotnet build src/AutoSettingUI.Generator/AutoSettingUI.Generator.csproj --configuration Release -p:ContinuousIntegrationBuild=true
38+
39+ - name : Build Extension.Shared
40+ run : dotnet build src/Extensions/AutoSettingUI.Extension.Shared/AutoSettingUI.Extension.Shared.csproj --configuration Release -p:ContinuousIntegrationBuild=true
41+
42+ - name : Build Avalonia
43+ run : dotnet build src/Extensions/AutoSettingUI.Avalonia/AutoSettingUI.Avalonia.csproj --configuration Release -p:ContinuousIntegrationBuild=true
44+
45+ - name : Build Ursa
46+ run : dotnet build src/Extensions/AutoSettingUI.Ursa/AutoSettingUI.Ursa.csproj --configuration Release -p:ContinuousIntegrationBuild=true
47+
48+ - name : Build WPF
49+ run : dotnet build src/Extensions/AutoSettingUI.WPF/AutoSettingUI.WPF.csproj --configuration Release -p:ContinuousIntegrationBuild=true
50+
51+ - name : Build Tests
52+ run : dotnet build src/AutoSettingUI.Generator.Tests/AutoSettingUI.Generator.Tests.csproj --configuration Release
5253
5354 - name : Run tests
54- run : dotnet test src/AutoSettingUI.Generator.Tests/AutoSettingUI.Generator.Tests.csproj --configuration Release --no-build --verbosity normal
55+ run : dotnet test src/AutoSettingUI.Generator.Tests/AutoSettingUI.Generator.Tests.csproj --configuration Release --no-build --verbosity minimal
5556
56- - name : Pack AutoSettingUI.Core
57+ - name : Create artifacts directory
58+ run : mkdir -p artifacts
59+
60+ - name : Pack Core
5761 run : dotnet pack src/AutoSettingUI.Core/AutoSettingUI.Core.csproj --configuration Release --no-build --output artifacts
5862
59- - name : Pack AutoSettingUI. Generator
63+ - name : Pack Generator
6064 run : dotnet pack src/AutoSettingUI.Generator/AutoSettingUI.Generator.csproj --configuration Release --no-build --output artifacts
6165
62- - name : Pack AutoSettingUI. Extension.Shared
66+ - name : Pack Extension.Shared
6367 run : dotnet pack src/Extensions/AutoSettingUI.Extension.Shared/AutoSettingUI.Extension.Shared.csproj --configuration Release --no-build --output artifacts
6468
65- - name : Pack AutoSettingUI. Avalonia
69+ - name : Pack Avalonia
6670 run : dotnet pack src/Extensions/AutoSettingUI.Avalonia/AutoSettingUI.Avalonia.csproj --configuration Release --no-build --output artifacts
6771
68- - name : Pack AutoSettingUI. Ursa
72+ - name : Pack Ursa
6973 run : dotnet pack src/Extensions/AutoSettingUI.Ursa/AutoSettingUI.Ursa.csproj --configuration Release --no-build --output artifacts
7074
71- - name : Pack AutoSettingUI. WPF
75+ - name : Pack WPF
7276 run : dotnet pack src/Extensions/AutoSettingUI.WPF/AutoSettingUI.WPF.csproj --configuration Release --no-build --output artifacts
7377
78+ - name : List packages
79+ run : ls artifacts
80+
7481 - name : Publish to NuGet
7582 if : startsWith(github.ref, 'refs/tags/v')
7683 run : dotnet nuget push artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
0 commit comments