File tree Expand file tree Collapse file tree 3 files changed +48
-0
lines changed
tests/DotNetCampus.CodeAnalysis.Tests Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : .NET Build
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ build :
7
+
8
+ runs-on : windows-latest
9
+
10
+ steps :
11
+ - uses : actions/checkout@v5
12
+
13
+ - name : Build with dotnet
14
+ run : dotnet build --configuration release
15
+ # - name: Test
16
+ # run: dotnet test --configuration release --no-build
Original file line number Diff line number Diff line change
1
+ name : publish nuget
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+
8
+ jobs :
9
+ build :
10
+
11
+ runs-on : windows-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v5
15
+
16
+ - name : Install dotnet tool
17
+ run : dotnet tool install -g dotnetCampus.TagToVersion
18
+
19
+ - name : Set tag to version
20
+ run : dotnet TagToVersion -t ${{ github.ref }}
21
+
22
+ - name : Build with dotnet
23
+ run : |
24
+ dotnet build --configuration release
25
+ dotnet pack --configuration release --no-build src\dotnetCampus.CodeAnalysisUtils\DotNetCampus.CodeAnalysisUtils.csproj
26
+
27
+ - name : Push generated package to NuGet
28
+ run : |
29
+ dotnet nuget push .\artifacts\package\release\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NugetKey }}
30
+ dotnet nuget push .\artifacts\package\release\*.nupkg -s https://nuget.pkg.github.com/${{ github.repository_owner }} --api-key ${{ secrets.GITHUB_TOKEN }} --timeout 3000
Original file line number Diff line number Diff line change 5
5
<RootNamespace >DotNetCampus.CodeAnalysis.Tests</RootNamespace >
6
6
<EnforceExtendedAnalyzerRules >true</EnforceExtendedAnalyzerRules >
7
7
<IsRoslynComponent >true</IsRoslynComponent >
8
+ <IsPackable >false</IsPackable >
9
+ <IsTestProject >true</IsTestProject >
8
10
</PropertyGroup >
9
11
10
12
<ItemGroup >
You can’t perform that action at this time.
0 commit comments