Skip to content

Commit

Permalink
fix: fix CD pipeline, retarget build frameworks (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeocodes authored Aug 23, 2023
1 parent 4024f82 commit 5f3f1f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ["3.1.x", "5.0.x", "6.0.x", "7.0.x"]
dotnet-version: ["6.0.x", "7.0.x"]

steps:
- uses: actions/checkout@v2
Expand All @@ -23,6 +23,8 @@ jobs:
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Build
run: dotnet build Deepgram.sln --configuration Release --no-restore
- name: Pack
run: |
dotnet pack Deepgram.sln --configuration Release --no-restore --output ./dist -p:Version=${{ steps.get_version.outputs.VERSION }}
- name: Archive build artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ["3.1.x", "5.0.x", "6.0.x", "7.0.x"]
dotnet-version: ["6.0.x", "7.0.x"]

steps:
- uses: actions/checkout@v2
Expand Down
15 changes: 7 additions & 8 deletions Deepgram/Deepgram.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0;net7.0;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0;netstandard2.0</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<Description>.NET SDK for the Deepgram API</Description>
<Copyright>2021 Deepgram</Copyright>
Expand All @@ -11,10 +11,9 @@
<RepositoryType>git</RepositoryType>
<PackageTags>speech-to-text,captions,speech-recognition,deepgram</PackageTags>
<PackageIcon>dg_logo.png</PackageIcon>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Product>Deepgram.NET SDK</Product>
<PackageId>Deepgram</PackageId>
<Title>Deepgram.NET</Title>
<Title>Deepgram.NET</Title>
</PropertyGroup>

<ItemGroup>
Expand All @@ -29,18 +28,18 @@
<None Include="D:\Sources\deepgram\deepgram-dotnet-sdk\Deepgram\.editorconfig" />
</ItemGroup>

<ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Threading.Channels" Version="7.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Threading.Channels" Version="7.0.0" />
</ItemGroup>

<ItemGroup>
<EditorConfigFiles Remove="D:\Sources\deepgram\deepgram-dotnet-sdk\Deepgram\.editorconfig" />
</ItemGroup>
<ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>Deepgram.Tests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>
</Project>

0 comments on commit 5f3f1f2

Please sign in to comment.