Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: .NET Build & Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
32 changes: 32 additions & 0 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: .NET NuGET Publish

on:
release:
types: released

jobs:
nugetpush:
name: Build, test and push to NuGET
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Publish to Nuget.org
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.nuget_apikey }} -s https://api.nuget.org/v3/index.json
- name: Add Github Packages source
run: dotnet nuget add source --username cmdotcom --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/cmdotcom/index.json"
- name: Publish to Github Packages
run: dotnet nuget push **/*.nupkg -s github
2 changes: 2 additions & 0 deletions CM.Voice.VoiceApi.Sdk.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.gitignore = .gitignore
LICENSE.md = LICENSE.md
README.md = README.md
.github/workflows/main.yml = .github/workflows/main.yml
.github/workflows/nuget.yml = .github/workflows/nuget.yml
EndProjectSection
EndProject
Global
Expand Down
34 changes: 16 additions & 18 deletions CM.Voice.VoiceApi.Sdk/CM.Voice.VoiceApi.Sdk.csproj
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Authors>mjepson</Authors>
<Version>1.0.0</Version>
<Description>SDK for use with the CM Voice API.</Description>
<PackageProjectUrl>https://github.com/CMTelecom/VoiceApiSdk</PackageProjectUrl>
<Company>CM Telecom</Company>
<PackageIconUrl>http://cdn.cmtelecom.com/images/cm-nuget.png</PackageIconUrl>
<RepositoryUrl>https://github.com/CMTelecom/VoiceApiSdk</RepositoryUrl>
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
<Authors>CM Talk</Authors>
<Company>CM.com</Company>
<Product>CM Talk SDK</Product>
<Description>A software development kit to provide ways to interact with CM.com's Talk/Voice API.</Description>
<PackageTags>voice, talk</PackageTags>
<RepositoryUrl>https://github.com/cmdotcom/talk-sdk-dotnet</RepositoryUrl>
<RepositoryType>Github</RepositoryType>
<PackageTags>SDK, CM, VoiceAPI</PackageTags>
<Copyright>2018 CM Telecom</Copyright>
<PackageLicenseUrl>https://mit-license.org</PackageLicenseUrl>
<PackageReleaseNotes>First version with support for sending instructions using a simple client.</PackageReleaseNotes>
<Copyright>$([System.DateTime]::UtcNow.Year) CM.com</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageIconUrl>https://cdn.cmtelecom.com/images/cm-nuget.png</PackageIconUrl>
<Version>1.8.0</Version>
<PackageProjectUrl>https://github.com/cmdotcom/talk-sdk-dotnet</PackageProjectUrl>
<NeutralLanguage>en</NeutralLanguage>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyVersion>1.8.0</AssemblyVersion>
<FileVersion>1.8.0</FileVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
</ItemGroup>

<ItemGroup>
<Reference Include="Newtonsoft.Json">
<HintPath>..\..\..\..\Users\Michael.Jepson\.nuget\packages\newtonsoft.json\9.0.1\lib\netstandard1.0\Newtonsoft.Json.dll</HintPath>
</Reference>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
Loading