Skip to content

Commit b232f77

Browse files
authored
Merge pull request #839 from polyadic/nuget-artifacts
Upload NuGet artifacts for release branchesNuget artifacts
2 parents bec3bd3 + 16ace83 commit b232f77

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build
22

33
on:
44
push:
5-
branches: [ main, funcky3 ]
5+
branches: [ main, release/** ]
66
pull_request:
7-
branches: [ main, funcky3 ]
7+
branches: [ main, release/** ]
88

99
env:
1010
DOTNET_NOLOGO: 1
@@ -68,7 +68,7 @@ jobs:
6868
- name: Generate NuGet Packages
6969
run: dotnet pack --output nupkg
7070
- uses: actions/upload-artifact@v4
71-
if: success() && github.ref == 'refs/heads/main'
71+
if: success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/'))
7272
with:
7373
name: nupkg
7474
path: nupkg/*

Directory.Packages.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
</ItemGroup>
3636
<ItemGroup Label="Analyzer">
3737
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" />
38-
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3" />
3938
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.XUnit" Version="1.1.0" />
4039
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.XUnit" Version="1.1.0" />
4140
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.CodeRefactoring.Testing.XUnit" Version="1.1.0" />
42-
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" /><!-- We explicitly reference these analyzers to get the latest version even though we might not use the latest version of Microsoft.CodeAnalysis everywhere. -->
41+
<!-- We explicitly reference the Microsoft.CodeAnalysis.Analyzers to get the latest version even though we might not use the latest version of Microsoft.CodeAnalysis everywhere. -->
42+
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" />
4343
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.0.1" />
4444
<PackageVersion Include="Microsoft.VSSDK.BuildTools" Version="17.0.1597"/>
4545
</ItemGroup>

Funcky.Analyzers/Funcky.Analyzers/Funcky.Analyzers.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<Nullable>enable</Nullable>
1111
<IsPackable>false</IsPackable>
1212
<AnalysisLevel>5</AnalysisLevel>
13+
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
1314
</PropertyGroup>
1415

1516
<ItemGroup>

0 commit comments

Comments
 (0)