Skip to content

Commit e3e4023

Browse files
committed
Update nuget metadata and add CI
1 parent 5358a22 commit e3e4023

3 files changed

Lines changed: 54 additions & 18 deletions

File tree

.github/workflows/default.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: .NET - Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
release:
9+
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup .NET Core
14+
uses: actions/setup-dotnet@v1
15+
with:
16+
dotnet-version: 6.x
17+
- name: Install dependencies
18+
run: dotnet restore
19+
- name: Build
20+
run: dotnet build -c Release
21+
- name: Upload NuGet Artifact
22+
uses: actions/upload-artifact@v2
23+
with:
24+
name: Fmod5Sharp.nupkg
25+
path: bin/Release/*.nupkg
26+
- name: Upload to NuGet
27+
if: contains(github.event.head_commit.message, '[publish]') == true
28+
run: dotnet nuget push ./bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY

Fmod5Sharp.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1313
ProjectSection(SolutionItems) = preProject
1414
.gitignore = .gitignore
1515
README.md = README.md
16+
.github\workflows\default.yml = .github\workflows\default.yml
1617
EndProjectSection
1718
EndProject
1819
Global

Fmod5Sharp/Fmod5Sharp.csproj

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,44 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<Nullable>enable</Nullable>
54
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
5+
<Authors>Sam Byass (Samboy063)</Authors>
66
<Configurations>Release;Debug</Configurations>
7-
<Platforms>x86;x64;AnyCPU</Platforms>
8-
<Version>3.0.0</Version>
9-
<PackageId>Fmod5Sharp</PackageId>
10-
<RepositoryType>git</RepositoryType>
11-
<RepositoryUrl>https://github.com/SamboyCoding/Fmod5Sharp.git</RepositoryUrl>
7+
<DebugType>embedded</DebugType>
128
<Description>Decoder for FMOD 5 sound banks (FSB files)</Description>
9+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
1310
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
11+
<IsTrimmable>true</IsTrimmable>
12+
<LangVersion>10</LangVersion>
13+
<Nullable>enable</Nullable>
14+
<PackageId>Fmod5Sharp</PackageId>
1415
<PackageLicenseExpression>MIT</PackageLicenseExpression>
16+
<PackageProjectUrl>https://github.com/SamboyCoding/Fmod5Sharp</PackageProjectUrl>
17+
<PackageTags>fmod;audio</PackageTags>
18+
<Platforms>x86;x64;AnyCPU</Platforms>
19+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
20+
<RepositoryType>git</RepositoryType>
21+
<RepositoryUrl>https://github.com/SamboyCoding/Fmod5Sharp.git</RepositoryUrl>
1522
<TargetFrameworks>net6.0;netstandard2.0</TargetFrameworks>
16-
<LangVersion>10</LangVersion>
17-
<IsTrimmable>true</IsTrimmable>
18-
<DebugType>embedded</DebugType>
23+
<Title>FMOD5 Sharp</Title>
24+
<Version>3.0.1</Version>
1925
</PropertyGroup>
2026

21-
<ItemGroup>
22-
<PackageReference Include="IndexRange" Version="1.0.2" />
23-
<PackageReference Include="NAudio.Core" Version="2.1.0" />
24-
<PackageReference Include="OggVorbisEncoder" Version="1.2.0" />
25-
<PackageReference Include="System.Text.Json" Version="6.0.5" />
26-
</ItemGroup>
27+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
28+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
29+
</PropertyGroup>
2730

2831
<ItemGroup>
29-
<None Remove="FmodVorbis\vorbis_headers.json" />
30-
<None Remove="FmodVorbis\vorbis_headers_converted.json" />
32+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
33+
<PackageReference Include="IndexRange" Version="1.0.2"/>
34+
<PackageReference Include="NAudio.Core" Version="2.1.0"/>
35+
<PackageReference Include="OggVorbisEncoder" Version="1.2.0"/>
36+
<PackageReference Include="System.Text.Json" Version="6.0.5"/>
3137
</ItemGroup>
3238

3339
<ItemGroup>
34-
<EmbeddedResource Include="Util\vorbis_headers_converted.json" />
40+
<None Remove="FmodVorbis\vorbis_headers_converted.json"/>
41+
<EmbeddedResource Include="Util\vorbis_headers_converted.json"/>
3542
</ItemGroup>
3643

3744
</Project>

0 commit comments

Comments
 (0)