diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml new file mode 100644 index 000000000..71f3aec41 --- /dev/null +++ b/.github/workflows/nuget.yml @@ -0,0 +1,25 @@ +name: Nuget +on: [push, pull_request] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + strategy: + matrix: + ProjectName: [ STUN ] + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Build + shell: pwsh + run: dotnet build -c Release ${{ matrix.ProjectName }}\${{ matrix.ProjectName }}.csproj + + - name: Push nuget packages + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} + shell: pwsh + run: | + dotnet nuget push ${{ matrix.ProjectName }}\bin\Release\*.nupkg -s https://nuget.pkg.github.com/HMBSbige -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate + dotnet nuget push ${{ matrix.ProjectName }}\bin\Release\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NuGetAPIKey }} --skip-duplicate \ No newline at end of file diff --git a/STUN/FodyWeavers.xml b/STUN/FodyWeavers.xml deleted file mode 100644 index e344bfbda..000000000 --- a/STUN/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/STUN/STUN.csproj b/STUN/STUN.csproj index ddd5277b7..636c37a21 100644 --- a/STUN/STUN.csproj +++ b/STUN/STUN.csproj @@ -4,6 +4,17 @@ netstandard2.0 latest enable + CS1591 + true + true + HMBSbige + Copyright © 2018 - 2021 HMBSbige + MIT + https://github.com/HMBSbige/NatTypeTester + https://github.com/HMBSbige/NatTypeTester + stun;nat;rfc3489;rfc5389 + 1.0.0 + Stun.Net