File tree Expand file tree Collapse file tree 4 files changed +33
-7
lines changed
Expand file tree Collapse file tree 4 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 88 - name : Setup .NET Core
99 uses : actions/setup-dotnet@v1
1010 with :
11- dotnet-version : 6.0. x
11+ dotnet-version : 6.x
1212 - name : Build and Test
1313 run : ./build.ps1
Original file line number Diff line number Diff line change 1+ name : release
2+ on :
3+ release :
4+ types : [published]
5+
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+ - uses : actions/setup-dotnet@v3
12+ with :
13+ dotnet-version : |
14+ 6.x
15+
16+ - run : dotnet pack src/yunit -c Release /p:Version=${GITHUB_REF_NAME#v} -o drop/nuget
17+
18+ - uses : actions/upload-artifact@v3
19+ with :
20+ name : nuget
21+ path : drop/nuget
22+
23+ - run : dotnet nuget push drop/nuget/*.nupkg --api-key "${{ secrets.NUGET_KEY }}" --skip-duplicate --source https://api.nuget.org/v3/index.json
Original file line number Diff line number Diff line change 1212 <!-- Build properties -->
1313 <LangVersion >Latest</LangVersion >
1414 <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
15+
16+ <ContinuousIntegrationBuild Condition =" '$(GITHUB_ACTIONS)' == 'true'" >true</ContinuousIntegrationBuild >
17+ <IncludeSymbols >true</IncludeSymbols >
18+ <SymbolPackageFormat >snupkg</SymbolPackageFormat >
19+ <EmbedUntrackedSources >true</EmbedUntrackedSources >
1520 </PropertyGroup >
21+
22+ <ItemGroup >
23+ <None Include =" $(MSBuildThisFileDirectory)\README.md" Pack =" true" PackagePath =" \" />
24+ </ItemGroup >
1625</Project >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments