File tree Expand file tree Collapse file tree 3 files changed +36
-3
lines changed Expand file tree Collapse file tree 3 files changed +36
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Nuget
2
+ on : [push, pull_request]
3
+
4
+ jobs :
5
+ build :
6
+ name : Build
7
+ runs-on : ubuntu-latest
8
+ strategy :
9
+ matrix :
10
+ ProjectName : [ STUN ]
11
+
12
+ steps :
13
+ - name : Checkout code
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Build
17
+ shell : pwsh
18
+ run : dotnet build -c Release ${{ matrix.ProjectName }}\${{ matrix.ProjectName }}.csproj
19
+
20
+ - name : Push nuget packages
21
+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
22
+ shell : pwsh
23
+ run : |
24
+ dotnet nuget push ${{ matrix.ProjectName }}\bin\Release\*.nupkg -s https://nuget.pkg.github.com/HMBSbige -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
25
+ dotnet nuget push ${{ matrix.ProjectName }}\bin\Release\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NuGetAPIKey }} --skip-duplicate
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
<TargetFramework >netstandard2.0</TargetFramework >
5
5
<LangVersion >latest</LangVersion >
6
6
<Nullable >enable</Nullable >
7
+ <NoWarn >CS1591</NoWarn >
8
+ <GenerateDocumentationFile >true</GenerateDocumentationFile >
9
+ <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
10
+ <Authors >HMBSbige</Authors >
11
+ <Copyright >Copyright © 2018 - 2021 HMBSbige</Copyright >
12
+ <PackageLicenseExpression >MIT</PackageLicenseExpression >
13
+ <PackageProjectUrl >https://github.com/HMBSbige/NatTypeTester</PackageProjectUrl >
14
+ <RepositoryUrl >https://github.com/HMBSbige/NatTypeTester</RepositoryUrl >
15
+ <PackageTags >stun;nat;rfc3489;rfc5389</PackageTags >
16
+ <Version >1.0.0</Version >
17
+ <PackageId >Stun.Net</PackageId >
7
18
</PropertyGroup >
8
19
9
20
</Project >
You can’t perform that action at this time.
0 commit comments