File tree Expand file tree Collapse file tree 2 files changed +51
-1
lines changed Expand file tree Collapse file tree 2 files changed +51
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Package
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' master'
7
+ paths-ignore :
8
+ - ' docs/**'
9
+
10
+ env :
11
+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
12
+ DOTNET_CLI_TELEMETRY_OPTOUT : 1
13
+
14
+ jobs :
15
+
16
+ publish :
17
+ runs-on : ' windows-latest'
18
+
19
+ steps :
20
+ - uses : actions/checkout@v1
21
+
22
+ - name : Set up .NET Core
23
+ uses : actions/setup-dotnet@v1
24
+ with :
25
+ dotnet-version : 3.0.100
26
+
27
+ - name : Restore
28
+ run : dotnet restore
29
+
30
+ - name : Build
31
+ run : dotnet build --configuration Release
32
+
33
+ - name : Unit Tests
34
+ run : dotnet test --configuration Release tests\MySqlConnector.Tests
35
+
36
+ - name : Pack
37
+ run : dotnet pack --configuration Release --no-build --version-suffix $(Get-Date -Format "'preview'yyyyMMddHHmmss'+${{ github.sha }}'")
38
+
39
+ - name : Install NuGet
40
+ run : choco install nuget.commandline
41
+
42
+ - name : Add NuGet source
43
+ run : nuget sources Add -Name "GPR" -Source "https://nuget.pkg.github.com/mysql-net/index.json" -UserName bgrainger -Password ${{ secrets.GITHUB_TOKEN }}
44
+
45
+ - name : Publish packages
46
+ run : |
47
+ $files = Get-ChildItem -Path src -Filter *.nupkg -Recurse
48
+ foreach ($file in $files) {
49
+ nuget push $file -Source GPR
50
+ }
Original file line number Diff line number Diff line change 18
18
<PublishRepositoryUrl >true</PublishRepositoryUrl >
19
19
<EmbedUntrackedSources >true</EmbedUntrackedSources >
20
20
<GenerateDocumentationFile >true</GenerateDocumentationFile >
21
- <NoWarn >1591</NoWarn >
21
+ <NoWarn >$(NoWarn); 1591;NU5105 </NoWarn >
22
22
</PropertyGroup >
23
23
24
24
<ItemGroup >
You can’t perform that action at this time.
0 commit comments