File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : PR validation
2+
3+ on :
4+ pull_request :
5+ branches : [ master ]
6+
7+ jobs :
8+ build :
9+ runs-on : ${{ matrix.os }}
10+
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ os : [ windows-latest, macos-latest, ubuntu-latest ]
15+
16+ steps :
17+ - uses : actions/checkout@v6
18+ with :
19+ fetch-depth : 0
20+ - name : Setup .NET 6
21+ uses : actions/setup-dotnet@v5
22+ with :
23+ dotnet-version : 6.0.x
24+ - name : Setup .NET 8
25+ uses : actions/setup-dotnet@v5
26+ with :
27+ dotnet-version : 8.0.x
28+ - name : Install dependencies
29+ run : dotnet restore
30+ - name : Build
31+ run : dotnet build --configuration Release --no-restore
32+ - name : Test
33+ run : dotnet test --configuration Release --no-build
34+ - name : Validate generated css files
35+ run : |
36+ test -s Samples/AspNetCore.SassCompiler.BlazorSample/Components/Pages/Counter.razor.css
37+ test -s Samples/AspNetCore.SassCompiler.BlazorSample/obj/Release/net8.0/scopedcss/Components/Pages/Counter.razor.rz.scp.css
38+ test -s Samples/AspNetCore.SassCompiler.BlazorWasmSample/Pages/Counter.razor.css
39+ test -s Samples/AspNetCore.SassCompiler.BlazorWasmSample/obj/Release/net8.0/scopedcss/Pages/Counter.razor.rz.scp.css
40+ test -s Samples/AspNetCore.SassCompiler.RazorClassLibrary/Component1.razor.css
41+ test -s Samples/AspNetCore.SassCompiler.RazorClassLibrary/obj/Release/net6.0/scopedcss/Component1.razor.rz.scp.css
42+ test -s Samples/AspNetCore.SassCompiler.Sample/wwwroot/css/site_sass.css
43+ test -s Samples/AspNetCore.SassCompiler.Sample/wwwroot/lib/css/lib.min.css
Original file line number Diff line number Diff line change 1- name : .NET Core
1+ name : Release
22
33on :
44 push :
55 branches : [ master ]
6- pull_request :
7- branches : [ master ]
86
97jobs :
108 build :
@@ -16,15 +14,15 @@ jobs:
1614 os : [ windows-latest, macos-latest, ubuntu-latest ]
1715
1816 steps :
19- - uses : actions/checkout@v4
17+ - uses : actions/checkout@v6
2018 with :
2119 fetch-depth : 0
2220 - name : Setup .NET 6
23- uses : actions/setup-dotnet@v4
21+ uses : actions/setup-dotnet@v5
2422 with :
2523 dotnet-version : 6.0.x
2624 - name : Setup .NET 8
27- uses : actions/setup-dotnet@v4
25+ uses : actions/setup-dotnet@v5
2826 with :
2927 dotnet-version : 8.0.x
3028 - name : Install dependencies
@@ -47,27 +45,34 @@ jobs:
4745 publish :
4846 runs-on : ubuntu-latest
4947 needs : [ build ]
50- if : github.event_name == 'push' && github.ref == 'refs/heads/master'
48+ permissions :
49+ id-token : write
50+ contents : write
5151 steps :
52- - uses : actions/checkout@v4
52+ - uses : actions/checkout@v6
5353 with :
5454 fetch-depth : 0
5555 - name : Setup .NET 6
56- uses : actions/setup-dotnet@v4
56+ uses : actions/setup-dotnet@v5
5757 with :
5858 dotnet-version : 6.0.x
5959 - name : Setup .NET 8
60- uses : actions/setup-dotnet@v4
60+ uses : actions/setup-dotnet@v5
6161 with :
6262 dotnet-version : 8.0.x
63+ - name : NuGet Login
64+ uses : NuGet/login@v1
65+ id : login
66+ with :
67+ user : koenvzeijl
6368 - name : Publish NuGet
6469 id : publish_nuget
6570 uses : alirezanet/publish-nuget@v3.1.0
6671 with :
6772 PROJECT_FILE_PATH : AspNetCore.SassCompiler/AspNetCore.SassCompiler.csproj
6873 PACKAGE_NAME : AspNetCore.SassCompiler
6974 env :
70- NUGET_KEY : ${{ secrets.NUGET_KEY }}
75+ NUGET_KEY : ${{ steps.login.outputs.NUGET_API_KEY }}
7176 - name : Create release
7277 id : create_release
7378 if : success() && steps.publish_nuget.outputs.version != ''
Original file line number Diff line number Diff line change 1+ <Project >
2+
3+ <PropertyGroup >
4+ <DebugType >embedded</DebugType >
5+ <PublishRepositoryUrl >true</PublishRepositoryUrl >
6+ <RepositoryBranch Condition =" '$(GITHUB_REF)' != ''" >$(GITHUB_REF)</RepositoryBranch >
7+ </PropertyGroup >
8+
9+ <PropertyGroup >
10+ <ContinuousIntegrationBuild Condition =" '$(CI)' == 'true'" >true</ContinuousIntegrationBuild >
11+ </PropertyGroup >
12+
13+ </Project >
You can’t perform that action at this time.
0 commit comments