Skip to content

Commit 19befab

Browse files
committed
housekeeping: Add Nuget package info
1 parent 4e05cdd commit 19befab

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

.github/workflows/nuget.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

STUN/FodyWeavers.xml

Lines changed: 0 additions & 3 deletions
This file was deleted.

STUN/STUN.csproj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<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>
718
</PropertyGroup>
819

920
</Project>

0 commit comments

Comments
 (0)