Skip to content

Commit

Permalink
housekeeping: Add Nuget package info
Browse files Browse the repository at this point in the history
  • Loading branch information
HMBSbige committed Aug 18, 2021
1 parent 4e05cdd commit 19befab
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 0 additions & 3 deletions STUN/FodyWeavers.xml

This file was deleted.

11 changes: 11 additions & 0 deletions STUN/STUN.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<NoWarn>CS1591</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>HMBSbige</Authors>
<Copyright>Copyright © 2018 - 2021 HMBSbige</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/HMBSbige/NatTypeTester</PackageProjectUrl>
<RepositoryUrl>https://github.com/HMBSbige/NatTypeTester</RepositoryUrl>
<PackageTags>stun;nat;rfc3489;rfc5389</PackageTags>
<Version>1.0.0</Version>
<PackageId>Stun.Net</PackageId>
</PropertyGroup>

</Project>

0 comments on commit 19befab

Please sign in to comment.