File tree 3 files changed +33
-1
lines changed
3 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 8
8
- name : Setup .NET Core
9
9
uses : actions/setup-dotnet@v1
10
10
with :
11
- dotnet-version : 6.0. x
11
+ dotnet-version : 6.x
12
12
- name : Build and Test
13
13
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 -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 12
12
<!-- Build properties -->
13
13
<LangVersion >Latest</LangVersion >
14
14
<TreatWarningsAsErrors >true</TreatWarningsAsErrors >
15
+
16
+ <ContinuousIntegrationBuild Condition =" '$(GITHUB_ACTIONS)' == 'true'" >true</ContinuousIntegrationBuild >
17
+ <IncludeSymbols >true</IncludeSymbols >
18
+ <SymbolPackageFormat >snupkg</SymbolPackageFormat >
19
+ <EmbedUntrackedSources >true</EmbedUntrackedSources >
15
20
</PropertyGroup >
21
+
22
+ <ItemGroup >
23
+ <None Include =" $(MSBuildThisFileDirectory)\README.md" Pack =" true" PackagePath =" \" />
24
+ </ItemGroup >
16
25
</Project >
You can’t perform that action at this time.
0 commit comments